Giter VIP home page Giter VIP logo

Comments (8)

davyxu avatar davyxu commented on May 5, 2024

什么客户端?

from cellnet.

bwangelme avatar bwangelme commented on May 5, 2024

弱弱的插个楼,可以和Java客户端通信吗?

我们目前想做一个APP的后端,需要和Java客户端通信。

from cellnet.

davyxu avatar davyxu commented on May 5, 2024

当然可以啊,说明里有封包格式,java那边和封包对上就可以通信

from cellnet.

bwangelme avatar bwangelme commented on May 5, 2024

OK,谢谢。

from cellnet.

ihxzihxz avatar ihxzihxz commented on May 5, 2024

` queue := cellnet.NewEventQueue()

p := socket.NewConnector(queue)
p.SetName("client.async")
p.Start("127.0.0.1:9201")`

不用这些,就用纯go的
conn, err := net.Dial("tcp", "127.0.0.1:10000")

from cellnet.

davyxu avatar davyxu commented on May 5, 2024

有第三方库你就直接用就是了嘛,如果需要自己解析,根据封包解就是了

from cellnet.

ihxzihxz avatar ihxzihxz commented on May 5, 2024

不是,是我的客户端和上面那位一样,是app和单片机上来的数据,没有golang环境。不能用go做客户端

from cellnet.

davyxu avatar davyxu commented on May 5, 2024

那就根据封包和session里的代码分析下就是了
其他网络库或者协议都是这样做的
如果觉得麻烦,就用http吧

from cellnet.

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.