Simple cross platform TCP IP API?

前端 未结 3 1748
臣服心动
臣服心动 2021-02-19 05:10

I\'m not looking to use something big like QT or wxWidgets\' APIs. I just want simple sockets that will work on Android, iOS, Windows, Mac, Linux.

I\'m making an event d

相关标签:
3条回答
  • 2021-02-19 05:26

    Perharps Boost.Asio (http://boost.org) or this one http://libunicomm.org based on Asio could be useful for you.

    0 讨论(0)
  • 2021-02-19 05:45

    Perhaps try BOOST Asio

    http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio.html

    Is that light weight enough?

    0 讨论(0)
  • 2021-02-19 05:48

    I've made a really simple, lightweight wrapper around the BSD Sockets API. It does TCP/IP communication only, using a server and a client (a server can optionally accept multiple client connections).

    You can find it here: (don't mind the Objective-C classes, use tcpconnect.h and tcpconnect.c only): http://github.com/H2CO3/TCPHelper

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