Short and sweet, since I had a couple of minutes:

<CFSET IP=Attributes.IP>
<CFSET Dotless = 0>
<CFSET Octets = ListLen(IP,".")>
<CFLOOP From="1" To="#Octets#" Index="i">
        <CFSET Dotless=Dotless + (ListGetAt(IP,i,".") * (256 ^ (Octets-i)))>
</cfloop>
<CFSET Caller.Dotless=Dotless>



Chris Evans
[EMAIL PROTECTED]
http://www.fuseware.com


-----Original Message-----
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 10, 2000 1:11 PM
To: [EMAIL PROTECTED]
Subject: Testing Assignment


Just for fun and keeping on the topic of testing and such, I'm assigning a
test to the CF community. Lets say you have an IP address. (207.31.122.141)
This IP address can also be seen as a long binary number using dotless IP
addressing (3474946701). The way the internet works, either address will
work properly. Now using the search terms "dotless IP address binary
decimal", find the information on how to convert from a standard Ip to a
long binary IP. Once you have the information, write a module that takes an
IP address and converts it.
<CF_DotlessIP IP="207.31.122.141">

I'm holding back from posting my tag result to the gallery so I can see what
others will try. If anyone wants the tag now without trying to do it
themselves, contact me off list.



----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to