Hi,I work with TCP sockets (server side) and I have a problem with client disconnection : the server keeps its connection alive even if the client has closed port ! Could you help me ? Thanks, Pascal

When you make a recv from that socket, it will not block, the recv will return with length equal 0 and that means the peer socket was closed. In practice, I found (on ConnectME) that it may return an error code. More, on multiple connects/disconnects, the code changes after first disconnect. It behaves different when I have a client written in Java, compare with a client written in VisualC++. Try to check what code do you get when disconnecting and use it to detect disconnection. Adrian