Sock.Reset Method

Top  Previous  Next

 

Function:

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

Syntax:

sock.reset

Returns:

---

See Also:

sock.close

 


Details

For TCP connections that were established, being opened, or being closed this will be a reset (RST will be sent to the other end of the connection). If connection was in the ARP phase or the transport protocol was UDP (sock.protocol= 0- PL_SOCK_PROTOCOL_UDP) the connection will be discarded (just like when the sock.discard method is used).

Method invocation will have NO effect if connection was closed at the time when the method was called (sock.state in one of PL_SST_CLOSED states).

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 reset HTML sockets arbitrarily.