338
Platforms
©2000-2008 Tibbo Technology Inc.
.Inconmode Property
Function:
For the currently selected socket (selection is made
through
) specifies whether incoming
connections (passive opens) will be accepted and, if yes,
from which sources.
Type:
Enum (pl_sock_inconmode, byte)
Value Range:
0- PL_SOCK_INCONMODE_NONE (default): The socket
does not accept any incoming connections.
1- PL_SOCK_INCONMODE_SPECIFIC_IPPORT: The socket
will only accept an incoming connection from specific IP
(matching
) and specific port (matching
)
2- PL_SOCK_INCONMODE_SPECIFIC_IP_ANY_PORT: The
socket will only accept an incoming connection from
specific IP (matching sock.targetip), but any port.
3- PL_SOCK_INCONMODE_ANY_IP_ANY_PORT: The
socket will accept an incoming connection from any IP
and any port.
See Also:
,
,
Details
---
.Localport R/O Property
Function:
For the currently selected socket (selection is made
through
) returns current local port of the
socket.
Type:
Word
Value Range:
0-65535, default= 0
See Also:
---
Details
Your application cannot set the local port directly. Instead, a list of ports on which
the socket is allowed to accept an incoming connection (passive open) is supplied
via the
and
properties.
An incoming connection is accepted on any port from those two lists. The sock.
localport property reflects current or the most recent local port on which
connection was accepted.
340
359
360
345
339
335
340
339
335