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.atoip - Convert an IP address from character string to a long integer

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

value = lp.atoip("ip");

Description

Convert an IP address from character string format to long integer. (WARNING the conversion is performed in the BIG INDIAN mode- the IP value is read from left to right)

Parameters

"ip" - A charactere string of an IP address (" xxx.xxx.xxx.xxx" ).

Return Values

The IP address as a long integer or nil

Example


www.loriotpro.com