[Libwebsockets] parameters for libwebsocket_client_connect()

yogeshldeshmukh . yogeshldeshmukh at gmail.com
Mon Nov 24 02:29:58 CET 2014


Hi Andy,

I’m bit confused about parameters for libwebsocket_client_connect()
If the URL  of webscoket server  is
*wss://myserver.com:6781/cserver/cagent?param1=yogesh&param2=12345-12345&param3=3
<http://myserver.com:6781/cserver/cagent?param1=yogesh&param2=12345-12345&param3=3>*
(I’m also sending some parameters at the time of connection establishment )
then the parameters to pass will be
Address  = “ myserver.com"
Port   =6781
ssl_connection =1
path  = ??
    Websocket path on server      ???
Host  = ??
Origin  =?
Confusions :
1.  What exactly will go in path and host   and origin
2. how exactly to send the parameters  ?

Regards,
Yogesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20141124/1af8083e/attachment.html>


More information about the Libwebsockets mailing list