BinaryData Event
Passes a received chunk of binary data to the application.
Syntax
ANSI (Cross Platform) virtual int FireBinaryData(WebSocketServerBinaryDataEventParams *e);
typedef struct {
int64 ConnectionID;
const char *Buffer; int lenBuffer;
int Last; int reserved; } WebSocketServerBinaryDataEventParams; Unicode (Windows) virtual INT FireBinaryData(WebSocketServerBinaryDataEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCSTR Buffer; INT lenBuffer;
BOOL Last; INT reserved; } WebSocketServerBinaryDataEventParams;
- (void)onBinaryData:(long long)connectionID :(NSData*)buffer :(BOOL)last;
#define EID_WEBSOCKETSERVER_BINARYDATA 3 virtual INT SECUREBLACKBOX_CALL FireBinaryData(LONG64 &lConnectionID, LPSTR &lpBuffer, INT &lenBuffer, BOOL &bLast);
Remarks
The class fires this event repeatedly to pass incoming pieces of binary data to the application. The Last parameter indicates that this is the last chunk.