|
|
Ip address of a computer using Winsock |
|
|
CoderSource.net |
|
|
C and C++ / Miscellaneous |
|
|
Click to Visit |
|
|
2704 |
This tutorial guides the programmer in programming a function for retieving the IP address into a type sockaddr_. This tutorial clearly explains that the first step of this program is to check whether the socket library is initialized or not, if not second step is to call the gethostbyname function to let it to recover the IP address in sockaddr_ structure by returning a pointer.
|