Search found 1 match

by Almeida
Fri Sep 16, 2005 2:30 pm
Forum: C++ Development
Topic: Sockets FAQ/Tutorial
Replies: 31
Views: 103997

Client IP address in server

How to get the client IP address in server? In Windows API the server get the client address in accept(): SOCKET sd_listen, sd_accept; struct sockaddr_in addr_srv, addr_client; int size_addr, error; size_addr = sizeof(struct sockaddr_in); (...) error = listen(sd_listen, SOMAXCONN); (...) // Acceptti...