Comments (7)
这里我在开发者群里求证了下。
释放连接时 调用 pc_client_destroy(client); 即可。
新的代码我已经提交上去了。更新下吧。
from ccpomelo.
你好 我是很久之前看到的你的ccpomelo 然后再改动了一些地方封装给了quick-cocos2d-x
https://github.com/yangzhu6263736/QXPomelo
今天看到你这边有更新了。
int ret = pc_client_connect(client, &address);
这句是阻塞线程的 我有改成
int ret = pc_client_connect2(client, conn_req, cc_pomelo_on_connect_cb);
还有一些其它针对quick的改动 。 非常感谢你的代码。
from ccpomelo.
@yangzhu6263736 ccpomelo已经很久未更新。libpomelo的使用上面有很多注意事项,直接使用可能会遇到不少坑,我以CCPomelo的核心玩法为基础,重新封装了一个CCPomeloWrapper,有兴趣可以看下是否满足使用需求。https://github.com/laoyur/CCPomeloWrapper
from ccpomelo.
@laoyur :) good job.
from ccpomelo.
int ret = pc_client_connect2(client, conn_req, cc_pomelo_on_connect_cb);
这个地方进不去 cc_pomelo_on_connect_cb 这个回调,有人碰见过么?
from ccpomelo.
@yezehui2002 服务器用的什么版本? 是 pomelo 还是 pomelo websocket ?
from ccpomelo.
我已经解决了,非常感谢。
发自我的 iPad
在 2014年6月1日,13:09,xdxttt [email protected] 写道:
@yezehui2002 服务器用的什么版本? 是 pomelo 还是 pomelo websocket ?
—
Reply to this email directly or view it on GitHub.
from ccpomelo.
Related Issues (2)
- 请问一下如何得到服务器断开连接的事件? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccpomelo.