.discard Method

Function:

For the selected socket (selection is made through sock.num), causes the socket to discard the connection with the other host.

Syntax:

sock.discard()

Returns:

---

See Also:

sock.close, sock.reset


Details

Discarding the connection means simply forgetting about it without notifying the other side of the connection in any way.

This method will be ignored when called from within an HTML page. HTML sockets are handled automatically and your application is not at freedom to discard HTML sockets arbitrarily.


.discard Method

Details