Rotcpconnectevent, H an, Rotcpstream – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 244

Advertising
background image

236

roTCPConnectEvent

The event is posted when a new connection is made to an roTCPServer port. The normal response to receiving such an
event is to create a new roTCPStream object and pass the event to its

AcceptFrom call.


Interfaces: ifUserData, ifSocketInfo, ifInternalGetTCPStream

The ifUserData interface provides the following:

SetUserData(user_data As Object): Sets the user data that will be returned when events are raised.

GetUserData() As Object: Returns the user data that has previously been set via SetUserData(). It will
return Invalid if no data has been set.


The ifSocketInfo interface provides the following:

GetSourceAddress() As String: Returns the IP address of the remote end of the TCP connection.

Advertising