Socket.isConnected

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

If using gio.socket.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 gio.socket.Socket.checkConnectResult.

class Socket
bool
isConnected
()

Return Value

Type: bool

true if socket is connected, false otherwise.