TcpSocket.disconnect

Disconnect the socket from its remote peer.

This function gracefully closes the connection. If the socket is not connected, this function has no effect.

class TcpSocket
void
disconnect
()

Meta