home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.oracle      Overblown overpriced overengineered SHIT      2,288 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 498 of 2,288   
   Ana C. Dent to Monica Roman   
   Re: Unsigned integer to IP address?   
   08 Oct 03 17:26:24   
   
   From: anacedent@hotmail.com   
      
   Monica Roman wrote:   
   > "Ana C. Dent"  wrote in message news:...   
   >   
   >>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   
   PERL has a built-in function ( but I don't recall its name right now)   
   which "converts" the integer into a dotted-quad string; complete with   
   three decimal points in the correct places.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca