They're hex addresses as well? I didn't know that. My solution was:

<CFPARAM NAME="Attributes.IP" TYPE="String">
<CFPARAM NAME="Attributes.IPName" DEFAULT="IP" TYPE="String">

<CFSET SetVariable('caller.'&attributes.ipname, (ListGetAt(Attributes.IP, 1,
'.')*16777216)+(ListGetAt(Attributes.IP, 2,
'.')*65536)+(ListGetAt(Attributes.IP, 3, '.')*256)+(ListGetAt(Attributes.IP,
4, '.')))>

I'm going to write an extension to do hex returns as well. Thanks for the
info. :)

> <G>
> Sure sure trick us into writing your tag for you lol :)
> I wrote something like that in perl in about 10 minutes :P
> They are HEX addresses. So typing
>
> 0xCF1F7A8D
>
> Pulss up 207.31.122.141
>
> its pretty east use a CFLIST with a period for a delimiter
> convert each list member to hex. assemble your
> new address.. Viola :) Hope I did not spoil
> the fun :)
>
> Jeremy
>
> ----- Original Message -----
> From: Michael Dinowitz <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 10, 2000 1:11 PM
> 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.
>

------------------------------------------------------------------------------
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