-
Notifications
You must be signed in to change notification settings - Fork 5
jijinlong/myNet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
// C++ 使用模块 CocosNet::getMe().init(); CocosNet::getMe().newClient(1,"112.124.26.245",5050); LuaReqData *data= LuaReqData::create(); data->content = "hello,world"; CocosNet::getMe().sendtoServer(1,data); -- 测试网络模块 lua使用模块 sync.init() sync.req({reqData=1},function(content) print(content) end) sync.req({reqData=2},function(content) print(content) end) local obj = "ewewe" sync.req({idData=2},function(content) print(obj) end) sync.send(1,{}) -- 发送消息 sync.with(2,function(data) -- 处理指定的返回信息 end)
About
扩平台的 网络库 特别提供针对Cocos2d-x的扩展 原生的scoket kqueuepool,iocp,epoll 实现
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published