Data Event
Supplies a data chunk received within a POST or PUT upload.
Syntax
ANSI (Cross Platform) virtual int FireData(RESTServerDataEventParams *e);
typedef struct {
int64 ConnectionID;
const char *Buffer; int lenBuffer; int reserved; } RESTServerDataEventParams; Unicode (Windows) virtual INT FireData(RESTServerDataEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCSTR Buffer; INT lenBuffer; INT reserved; } RESTServerDataEventParams;
- (void)onData:(long long)connectionID :(NSData*)buffer;
#define EID_RESTSERVER_DATA 6 virtual INT SECUREBLACKBOX_CALL FireData(LONG64 &lConnectionID, LPSTR &lpBuffer, INT &lenBuffer);
Remarks
This event is fired to supply another piece of data received within a POST or PUT upload operation. This event may fire multiple times during a single request upload to pass the uploaded data to the application chunk-by-chunk.