Xojo.Net.TCPSocket.Disconnect

From Xojo Documentation

Method

Xojo.Net.TCPSocket.Disconnect()

Supported for all project types and targets.

Disconnects the socket, resets it, and calls the Disconnected event handler.