/
<connection_handle>_OnReceiveEvent
<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.
, multiple selections available,
Related content
<connection_handle>_OnConnectEvent
<connection_handle>_OnConnectEvent
More like this
<connection_handle>_OnDisconnectEvent
<connection_handle>_OnDisconnectEvent
More like this
<connection_handle>_OnErrorEvent
<connection_handle>_OnErrorEvent
More like this
xcon.IsConnected
xcon.IsConnected
More like this
xcon.SendText (plain string over socket connection)
xcon.SendText (plain string over socket connection)
More like this
xcon.SendTo
xcon.SendTo
More like this