Code Monkey home page Code Monkey logo

Comments (7)

xdxttt avatar xdxttt commented on July 17, 2024

这里我在开发者群里求证了下。
释放连接时 调用 pc_client_destroy(client); 即可。
新的代码我已经提交上去了。更新下吧。

from ccpomelo.

yangzhu6263736 avatar yangzhu6263736 commented on July 17, 2024

你好 我是很久之前看到的你的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.

laoyur avatar laoyur commented on July 17, 2024

@yangzhu6263736 ccpomelo已经很久未更新。libpomelo的使用上面有很多注意事项,直接使用可能会遇到不少坑,我以CCPomelo的核心玩法为基础,重新封装了一个CCPomeloWrapper,有兴趣可以看下是否满足使用需求。https://github.com/laoyur/CCPomeloWrapper

from ccpomelo.

xdxttt avatar xdxttt commented on July 17, 2024

@laoyur :) good job.

from ccpomelo.

yezehui2002 avatar yezehui2002 commented on July 17, 2024

int ret = pc_client_connect2(client, conn_req, cc_pomelo_on_connect_cb);
这个地方进不去 cc_pomelo_on_connect_cb 这个回调,有人碰见过么?

from ccpomelo.

xdxttt avatar xdxttt commented on July 17, 2024

@yezehui2002 服务器用的什么版本? 是 pomelo 还是 pomelo websocket ?

from ccpomelo.

yezehui2002 avatar yezehui2002 commented on July 17, 2024

我已经解决了,非常感谢。

发自我的 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.