1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

correct example lws_write in header

Signed-off-by: Alex Rhatyshnyak <a.rhatushnyak@klervi.com>
This commit is contained in:
Alex Rhatushnyak 2013-03-09 12:01:47 +08:00 committed by Andy Green
parent 38c570c6d2
commit 9f2246eb35

View file

@ -836,7 +836,8 @@ libwebsocket_context_user(struct libwebsocket_context *context);
* // fill your part of the buffer... for example here it's all zeros
* memset(&buf[LWS_SEND_BUFFER_PRE_PADDING], 0, 128);
*
* libwebsocket_write(wsi, &buf[LWS_SEND_BUFFER_PRE_PADDING], 128);
* libwebsocket_write(wsi, &buf[LWS_SEND_BUFFER_PRE_PADDING], 128,
* LWS_WRITE_TEXT);
*
* When sending LWS_WRITE_HTTP, there is no protocol addition and you can just
* use the whole buffer without taking care of the above.