SocketCore.Close

From Xojo Documentation

Revision as of 14:34, 8 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

SocketCore.Close()

Supported for all project types and targets.

Closes the socket’s connection, closes any connections the socket may have, and resets the socket.

Notes

The only information that is retained after calling Close is the socket’s port, address (in the case of TCPSockets), LastErrorCode properties, and data left in the socket’s receive buffer. All other information is discarded.

Example

This example closes the EasyTCPSockets that were open. The sockets were added to the main window.

Connector.Close
Listener.Close