LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.iptoa - Convert an IP address from long interger to character string

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax

‘ip’ = lp.iptoa(long);

string=lp.iptoa(long);

Description

Convert an IP address from long integer to character string.

See lp.atoip function (WARNING the conversion is performed in the BIG INDIAN mode- the IP value is read from left to right)

Parameters

long - An IP address in long integer format

Return Values

ip - The IP address in a charater string format.

nil if an error occurs.

Example

long=lp.atoip('127.0.0.1');

ip=lp.iptoa(long);

lp.Print("My ip address : ",ip,"\n");

 

ip to a in lua

 


www.loriotpro.com