Giter Site home page Giter Site logo

Comments (3)

ldcsaa avatar ldcsaa commented on May 13, 2024

每个组件有自己的CONNID体系,互补相干。
要是你想做绑定,请用SetConnectionExtra()

from hp-socket.

mage-game avatar mage-game commented on May 13, 2024

@ldcsaa 如果这样的话,设计client的GetConnectionID函数应该作用就不大了吧,只会返回1或者0,按正常逻辑理解这个函数不是应该返回与服务端连接的实际id吗。比如TcpClient又不像Agent,不需要与其他client相连,只与TcpServer相连,调用TcpClient的GetConnectionID函数难道不应该返回TcpServer分配的实际ID吗。我用HPSocket做游戏服务器,想用GetConnectionID函数直接得到Client的实际连接ID

from hp-socket.

ldcsaa avatar ldcsaa commented on May 13, 2024

Client的CONNID每次Start递增。对Client来说CONNID意义确实不大,只是作个标识为了接口统一

from hp-socket.

Related Issues (20)

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.