bz_eNetDataSendEvent
This event is called each time net data is sent
Data Object Type
2.4.0 bz_NetTransferEventData_V1
Parameters
These are the values accessible in the bz_EventData variable that's made available in the Event method.
| Data Type | Name | Description | 
|---|---|---|
| bool | send | Whether data is sent or recieved | 
| bool | udp | Whether the packet is UDP | 
| unsigned int | iSize | Size of the packet | 
| unsigned char* | data | The packet data | 
| int | playerID | The ID of the player this data is relating to | 
| double | eventTime | The current server time | 
Plug-in Usage
There are no plug-ins in the official distribution that make use of this event. Browse the Plug-in Releases forum for plug-ins which may make use of this event.
Plug-in Example
This block of code can be used to get started when implementing the Event() function of your plug-in.
bz_NetTransferEventData_V1* dataObject = (bz_NetTransferEventData_V1*)eventData;
// Data
// ---
// (bool)         send - Whether data is sent or recieved
// (bool)         udp - Whether the packet is UDP
// (unsigned int) iSize - Size of the packet
// (unsigned char*) data - The packet data
// (int)          playerID - The ID of the player this data is relating to
// (double)       eventTime - The current server timeOther Logging Events
This content is maintained on GitHub. We welcome any feedback and improvements!