[Libwebsockets] How to determine data type received?

Gregory Junker ggjunker at gmail.com
Fri Jan 18 00:18:35 CET 2013


Hi

Is there a way to determine the type of data sent by the remote endpoint in
the callback function? For example, if the server sends the client (both
using libwebsockets) how can I determine whether "in" points to data sent
with LWS_WRITE_BINARY or LWS_WRITE_TEXT (apart from putting that info into
my data as well)?

Thanks
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20130117/7f77aa96/attachment.html>


More information about the Libwebsockets mailing list