C++ – Simple cross platform TCP IP API

apictcp

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,

Best Answer

Perhaps try BOOST Asio

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

Is that light weight enough?

Related Topic