CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2013
    Posts
    2

    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?

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Programming C++ websocket client and server

    I guess you have to begin with reading documentation about libwebsocket_create_context function...
    Victor Nijegorodov

  3. #3
    Join Date
    Nov 2013
    Posts
    2

    Re: Programming C++ websocket client and server

    Quote Originally Posted by VictorN View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured