Simple cross platform TCP IP API?

前端 未结 3 1729
臣服心动
臣服心动 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: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

提交回复
热议问题