IC8 Python API:RLPy RTcpCallback

From Reallusion Wiki!
Jump to: navigation, search

Description

This class is used to monitor TCP/IP connection status and recieve connection data.

Constructor & Destructor

__init__ (self)

Initializes a new tcp callback instance.

Member Functions

OnDataReceived (self)

The application will call this function when a connection has been made and once the data has been received. Once this has been achieved, RLPy.RTcpClient.GetDataSize() can be used to establish a sized buffer ready to recieve the incoming data via RLPy.RTcpClient.GetDataAt(). See Also: RTcpClient, RLPy.RTcpClient.GetData(), RLPy.RTcpClient.GetDataAt(), RLPy.RTcpClient.GetDataSize()

OnFailMessageReceived (self, pErrorMsg)

This function is called by the application in the event that a connection can not be established or a connection error has occurred; In which case, an error message will be given.

Parameters

  • pErrorMsg

OnStatusChanged (self, bIsConnected)

Callback function when status changed.

Parameters

  • bIsConnected

Properties

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.