Little problem with revolving and printing a host name
I have a small Server (written in C language). It communicates with a Client.
This Server receives some data from the Client with the recvefrom().
In this case my recvfrom() is:
It works well.
if ((recvMsgSize = recvfrom(sock, echoBuffer, BUFMAX, 0,
(struct sockaddr *) &echoClntAddr, &cliAddrLen)) < 0)
I know my Client address (network byte order) is stored in echoClntAddr. I'd like to have some help in converting this address in its corresponding host name and print it.
I'm not an expert :(.
PS: I use eclipse on Win.