Socket.isConnected

Check whether the socket is connected. This is only useful for connection-oriented sockets. Since 2.22

class Socket
int
isConnected
()

Return Value

Type: int

TRUE if socket is connected, FALSE otherwise.

Meta