SFML community forums
Help => Network => Topic started by: Cube777 on January 11, 2015, 04:00:03 pm
-
Hello, I'm using the socket selector class to monitor a bunch of TCP sockets, and I was wondering if I called disconnect() on any of the sockets, will it trigger the wait() function of the selector? Or is this only when receive() is ready? (Documentation didn't mention anything on disconnect()). Also , does the destructor of the TCP socket call disconnect()? Thanks in advance for any help!
-
Yes. When a socket disconnects, when you receive data from that socket, the status should be sf::Socket::Status::Disconnected or whatever it is.