TCPSocket.Disconnect

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

TCPSocket.Disconnect()

Supported for all project types and targets.

Disconnects the socket, resets it, and fires a SocketCore Error event with a 102 error to let you know that the socket has been disconnected.

Example

This example disconnects the EasyTCPSockets that were opened.

Connector.Disconnect
Listener.Disconnect