-
November 22nd, 2013, 05:20 PM
#1
Programming C++ websocket client and server
How do I programm a C++ project with client and server communicating via libwebsocket.
The problem is,
context = libwebsocket_create_context(port, interface, protocols, libwebsocket_internal_extensions, cert_path, key_path, "", -1, -1, opts);
if (!context)
{
fprintf(stderr, "libwebsocket init failed\n");
return;
}
returns NULL, if the server has already opened a context with the same port.
What am I doing wrong?
-
November 23rd, 2013, 02:35 PM
#2
Re: Programming C++ websocket client and server
I guess you have to begin with reading documentation about libwebsocket_create_context function...
Victor Nijegorodov
-
November 23rd, 2013, 02:37 PM
#3
Re: Programming C++ websocket client and server
Originally Posted by VictorN
I guess you have to begin with reading documentation about libwebsocket_create_context function...
Enlighten me.. I did not find a good documentation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|