Sock.Localportlist Property

Top  Previous  Next

 

Function:

For the currently selected socket (selection is made through sock.num) sets/returns the list of listening ports on any of which this socket will accept an incoming UDP or TCP connection.

Type:

String

Value Range:

0-32 characters, default= ""

See Also:

sock.localport

 


Details

The socket will only accept an incoming connection when such connections are allowed by the sock.inconmode property. Whether the socket will accept UDP or TCP connections is defined by the sock.protocol property. Additionally, the sock.allowedinterfaces property defines network interfaces on which the socket will accept an incoming connection.

This property is of string type and the list of ports is a comma-separated string, i.e. "1001,3000" (to accept connections on either port 1001 or 3000). Max string length for this property is 32 bytes. Notice, that there is also a sock.httpportlist property that defines a list of listening ports for HTTP TCP connections.