.Allowedinterfaces Property

Top  Previous  Next

 

Function:

For currently selected socket (selection is made through sock.num) defines the list of network interfaces on which this socket will accept incoming connections.

Type:

String

Value Range:

Platform-specific. See the list of supported interfaces in the "Platform-dependent Programming Information" topic found inside the documentation for your platform.

See Also:

Accepting Incoming Connections

 


Details

Each network interface has a name. For example, the Ethernet interface goes by the name "NET" (because it is handled by the net object). The Wi-Fi interface is called "WLN" (see wln object).

The list of allowed interfaces is comma-delimited, i.e. "WLN,NET". Note that reading back the value of this property will return the same list, but not necessarily in the same order. For example, the application may write "WLN,NET" into this property, yet read "NET,WLN" back. Unsupported interface names will be dropped from the list automatically.

The socket will not accept a connection on the interface which is not on the sock.allowedinterfaces list, even if all other connection parameters such as protocol, port, etc. are correct.

This property is not available on the EM202/200 (-EV), DS202 platform.