BinaryData Event
Passes a received chunk of binary data to the application.
Syntax
ANSI (Cross Platform) virtual int FireBinaryData(WebSocketClientBinaryDataEventParams *e);
typedef struct {
const char *Buffer; int lenBuffer;
int Last; int reserved; } WebSocketClientBinaryDataEventParams; Unicode (Windows) virtual INT FireBinaryData(WebSocketClientBinaryDataEventParams *e);
typedef struct {
LPCSTR Buffer; INT lenBuffer;
BOOL Last; INT reserved; } WebSocketClientBinaryDataEventParams;
- (void)onBinaryData:(NSData*)buffer :(BOOL)last;
#define EID_WEBSOCKETCLIENT_BINARYDATA 1 virtual INT SECUREBLACKBOX_CALL FireBinaryData(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.