how to add net to cocos2d-x?

I want to dev a mmo poker game(Texas) on iphone,android,bada.
which net lib is best choose?
libcurl
bsd socket
C++ socket library http://www.alhem.net/Sockets/

1.I need xml or json support
2.username and passwd authenticator
3.md5 support?

help,thx!

  1. The net lib is depend on your server implement. I guess the socket communication is better for mmo games. So bsd socket is my choice.
  2. You can use libxml or tinyxml for xml parse
  3. There’s many open source josn lib on josn.org. I recommend libjson http://sourceforge.net/projects/libjson/
  4. authenticator & md5 is out of my knowledge

cocos2d-x would not integrate too much open projects to became “a fat platform”. You can use our engine to resolve graphic renderring and sound effects playback, then please integrate other open projects to your game to deal with network and so on.

For sockets you can take a look at Poco: http://pocoproject.org/

There is a module for tcpsockets. Here are some tips for building it for the iPhone: http://pocoproject.org/forum/viewtopic.php?f=14&t=4844

For md5, you can probably also use Poco.