Reputation: 54173
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 driven card game so TCP would be best.
Essentially, I just want to connect and authenticate clients. After that I just need to be able to send them messages. I was going to use reliable UDP but TCP seems more appropriate.
If anyone also has basic tutorials for something like a tcp chat application I'd appreciate it.
Thanks
I just want to be able to use, send(), recv, etc without worrying about WINSOCK or POSIX,
Upvotes: 18
Views: 7723
Reputation: 3672
Perharps Boost.Asio (http://boost.org) or this one http://libunicomm.org based on Asio could be useful for you.
Upvotes: 0
Reputation:
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
Upvotes: 1
Reputation: 1656
Perhaps try BOOST Asio
http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio.html
Is that light weight enough?
Upvotes: 6