TCP.readIntoPayload()
Signature
Event readIntoPayload(String sessionNickName, int maxNumBytesToRead, String uriOfResponseEvent)
Parameters
Name | Type | Description |
sessionNickName | String | Nick name of the session |
maxNumBytesToRead | int | If the end of the stream is received before this number of bytes are read, then the
reading stops and returns the data collected so far. |
uriOfResponseEvent | String | The event that will be created and the bytes read will be set as a payload into
that event before returning it. |
Returns
Type | Description |
Event | The event with the payload containing the data. null if End-of-stream is reached. |