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.Code:if ((recvMsgSize = recvfrom(sock, echoBuffer, BUFMAX, 0, (struct sockaddr *) &echoClntAddr, &cliAddrLen)) < 0) printError("\nrecvfrom() failed.");
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.