ListenerPort Property

General info

Label

Listener Port

Description

Component listener (server) port for core service communication in Communication Mode = Passiv.

Data type

UInt16

Min value

0

Max value

65535

Type

Regular

Code

213

Symbolic name

MODEL_PROP_LISTENERPORT

Lua access code

syslib.model.properties.ListenerPort

Available since

1.0

Parent properties

CommunicationSettings

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_HAS_LOLIMIT The property has a low limit.
PROP_HAS_HILIMIT The property has a high limit.
PROP_NULLABLE This Property can have no value.

Examples

Read from or write to the ListenerPort property.

  • Lua

  • C#

-- Read from the ListenerPort
syslib.getvalue("<OBJECT FULL PATH>.CommunicationSettings.ListenerPort")

-- Write to the ListenerPort
syslib.setvalue("<OBJECT FULL PATH>.CommunicationSettings.ListenerPort", VALUE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the ListenerPort
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.CommunicationSettings.ListenerPort"));
// Write to the ListenerPort
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.CommunicationSettings.ListenerPort"));