<connection_handle>_OnReceiveEvent
Description
This function is invoked when an XCON connection received data. Create a function for each connection to monitor and name it accordingly, e.g. for connection socket1 create the function socket1_OnReceiveEvent.
Signature
<connection_handle>_OnReceiveEvent(data, length, ip, port)
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
data | string | M | data string |
length | number | M | data size |
ip | string | M | IP address of sender |
port | number | M | port number of sender |
Return
None.