Socket.isConnected

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

If using Socket.shutdown, this function will return TRUE until the socket has been shut down for reading and writing. If you do a non-blocking connect, this function will not return TRUE until after you call Socket.checkConnectResult.

class Socket
bool
isConnected
()

Return Value

Type: bool

TRUE if socket is connected, FALSE otherwise.

Meta

Since

2.22