Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
i have the SOCKET that i use to send/recv data, now i want to know the IP adres of the connected client. how can i do this? greetz []D [] []D []
Try this:
int namelen=sizeof(sockaddr_in); sockaddr_in name; getpeername(sock, (sockaddr *)&name, &namelen); char *sz=inet_ntoa(name.sin_addr);
rechi