Portable lightweight C++ sockets wrapper

前端 未结 9 1992
隐瞒了意图╮
隐瞒了意图╮ 2020-12-31 01:58

I really thought this would be easier to find...

I need a portable c++ sockets wrapper. I\'m planning to use it for a windows server application and a client that w

相关标签:
9条回答
  • 2020-12-31 02:27

    I'm personally creating my own AsIO wrapper for both TCP and Serial sockets, and I started by reviewing the following tutorial:

    https://www.gamedev.net/blogs/blog/950-they-dont-teach-this-stuff-in-school/

    and

    https://objectcomputing.com/resources/publications/mnb/multi-platform-serial-interfacing-using-boost-a-gps-sensor-and-opendds-part-i/

    I found the first one very useful and simple to understand.

    0 讨论(0)
  • 2020-12-31 02:37

    C++CSP2

    Used it loved it. Stable and powerful

    0 讨论(0)
  • 2020-12-31 02:40

    If you really don't like Boost asio then you might like the sockets support in dlib. It is simpler in the sense that it uses traditional blocking IO and threads rather than asio's asynchronous proactor pattern. For example, it makes it easy to make a threaded TCP server that reads and writes from the iostreams. See this example for instance. Or you can just make a simple iosockstream if not acting as a server.

    0 讨论(0)
提交回复
热议问题