.reconmode Property
Function: |
For the currently selected socket (selection is made through sock.num), determines whether the socket accepts reconnects and, if yes, from which sources. |
Type: |
Enum (pl_sock_reconmode, byte) |
Value Range: |
|
See Also: |
--- |
Details
A reconnect situation is when a passive open and resulting connection replace, for the same socket, the connection that was already in progress. For UDP, this property additionally defines whether a "port switchover" will occur as a result of an incoming connection (passive open) or a reconnect. Port switchover is when the socket starts sending its outgoing UDP datagrams to the port from which the most recent UDP datagram was received, rather than the port specified by the sock.targetport property.
DO NOT enable reconnects on sockets that are used to handle HTML requests. This will interfere with HTML operation, as explained in Understanding TCP Reconnects.