Programming C++ websocket client and server
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Programming C++ websocket client and server

  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 offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center