Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kWebSocket_SetReadBuffers | ( | kWebSocket | webSocket,
|  | kSSize | socketSize,
|  | kSSize | clientSize
| ) |  |

Sets the size of the read buffers.

Socket buffers decouple the sender and receiver, so that the sender does not need to block while waiting for the receiver to receive all bytes. Client buffers improve the efficiency of the client when performing several small read operations.

Parameters

  webSocket | WebSocket object.
  socketSize | Size of the read buffer maintained by the underlying socket (-1 to leave unchanged).
  clientSize | Size of the read buffer maintained by the client object (-1 to leave unchanged).

Returns
  Operation status.