![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EULAs, Psystar, and the Reality Principle | iBot | UNIX and Linux RSS News | 0 | 08-22-2009 06:45 AM |
| inet_addr() returns 0 | soulfactory2002 | High Level Programming | 1 | 06-02-2005 04:25 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Principle of inet_addr and inet_ntoa
hello,
i have just started Socket programming and i come across functions inet_addr() which converts IP address to unsigned long and inet_ntoa() which converts unsigned long to IP address but dont understand on what formula/principle they do these conversions say for a given ip address can i expect what unsigned long number its going to give and vice versa. one more thing: i am writting a program , just to know how the above functions work but the difficulty is i need to declare various structure variable , but how to know the exact names of the structures i mean whether the structure is given in_addr_t or in_addr or some other name can i see the structures and and its contents i am so confused. please help me. this is bit urgent and i want to learn it quickly. Last edited by juststarted; 1 Week Ago at 09:28 AM.. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|