Re: Unsigned integer to IP address?

From: Monica Roman <monicaroman_at_yahoo.com>
Date: 8 Oct 2003 05:34:37 -0700
Message-ID: <9eb77af5.0310080434.2f7161e4_at_posting.google.com>


"Ana C. Dent" <anacedent_at_hotmail.com> wrote in message news:<lGhgb.54981$Ms2.34316_at_fed1read03>...
>
> Inside the OS an IP# is just a 32-bit integer.
> It is typically represented in what is called "dottted-quad" notation.
> This means that each 8-bit byte (0-255) represents one of the 4 numbers
> displayed. So you need to "convert" the large decimal number into the
> appropriate ONE & ZERO, group them into four 8 bits bytes & the convert
> those four values back to decimal (Small Matter Of Programming [SMOP]).

Ana, Thank you! Now the question is how do I do that? Or, where can I find info, any books or articles you can recommend?

Thanks,

Monica Received on Wed Oct 08 2003 - 14:34:37 CEST

Original text of this message