create a universal  socket library.  which can be used in multiply platform. it is designed for client side.  test platform is  cocos2d-x and KBEngine.