6.1-roStreamConnectResultEvent

ON THIS PAGE


This event is sent to a message port associated with an roTCPStream object when an AsyncConnectTo() request has been completed or has failed.

ifInt

GetInt() As Integer

Returns the result code of the event. If the connection was successfully established, then this method will return 0. If connection failed for any reason, this method will return a non-zero integer.

SetInt(a As Integer)

ifUserData

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.