the solution of tcp on cocos2d-x