DataPacketOut Event
Fired when sending a data packet to the server.
Syntax
ANSI (Cross Platform) virtual int FireDataPacketOut(ServerDataPacketOutEventParams *e);
typedef struct {
const char *DataPacket; int lenDataPacket; int reserved; } ServerDataPacketOutEventParams; Unicode (Windows) virtual INT FireDataPacketOut(ServerDataPacketOutEventParams *e);
typedef struct {
LPCSTR DataPacket; INT lenDataPacket; INT reserved; } ServerDataPacketOutEventParams;
- (void)onDataPacketOut:(NSData*)dataPacket;
#define EID_SERVER_DATAPACKETOUT 3 virtual INT IPWORKS3DS_CALL FireDataPacketOut(LPSTR &lpDataPacket, INT &lenDataPacket);
Remarks
This event fires right before each data packet is sent. The entire data packet (including all framing and error detection characters) is contained in the DataPacket parameter. This parameter may be inspected for advanced troubleshooting, or may be modified to support additional features beyond the scope of this component.