Table of Contents

# $EPIC: iptolong.txt,v 1.2 2006/08/01 03:40:36 sthalik Exp $

Synopsis:

$iptolong(<dotted-quad>)

Technical:

Practical:

This function does the reverse of $longtoip(). The DCC handshake uses 'long's to swap ip addresses. You could use $convert() to convert your hostname to a dotted-quad and then use this function to convert it to a “long” value which would be suitable for use in a DCC handshake. Why you would do such a thing is not certain but this function is included for completeness sake.

Returns:

The “long” integer IPv4 address equivalent of <dotted-quad>

Examples:

$iptolong(127.8.4.3) returns “2131231747”