struct hostent FAR * gethostbyname (const char FAR * name);
loc.sin_family = AF_INET; loc.sin_port = htons(PORT); loc.sin_addr.s_addr = htonl(INADDR_ANY); /*some code*/ printf("%s is connected\n", inet_ntoa(loc.sin_addr));