Rotcpserver – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 245

Advertising
background image

237

roTCPServer


Interfaces:

ifTCPServerInstance

,

ifUserData


The ifTCPServerInstance interface provides the following:

GetFailureReason() As String: Yields additional useful information if an roTCPServer method fails.

SetPort(port As Object): Sets the message port that will receive events from an roTCPServer instance.

BindToPort(port As Dynamic) As Boolean: Prepares to accept incoming TCP connections on the
specified port. Passing an integer to this method will specify a standard port number. This method can also accept
an index of integer interfaces contained within an associative array, which can contain the following members:

o -1: Any (this is the default value)
o 0: Ethernet
o 1: WiFi
o 2: Modem
o 32767: Loopback (i.e. TCP connections can only be established by internal sources)


The ifUserData interface provides the following:

SetUserData(a As Object): Supplies an object that will be provided by every event called by an roTCPServer
instance.

GetUserData() As Object

Advertising