我如何了解数据包?
我正在Python中创建服务器软件。
我还使用 https://wiki.vg/bed/bed/bed/bedrock_protocol 已记录了我使用的协议。 根据此网站的说法,客户端将发送一个带有0x01
的ID的登录数据包,然后它具有三个字段。
当我收到它时,该数据包是我认为是二进制的一堆(0x00
或0x01
之类的东西)。
那么,如何找出数据包的ID和Python的字段值?有文件吗?
对于那些想知道我尝试过的东西的人,要获得我做过的ID packep [0]
,但是我不确定这是否是正确的方法,我仍然不知道该字段是如何的分开。
任何帮助都将受到赞赏。
I am creating server software in Python.
I'm also using https://wiki.vg/Bedrock_Protocol which has documented the protocol that I am using.
According to this site, the client will send a login packet with an id of 0x01
, and then it has three fields.
This packet when I receive it is a bunch of what I think is binary (stuff like 0x00
or 0x01
).
So how do I figure out the id of the packet and the values of the fields from Python? Is there any documentation?
For those who want to know what I have tried, to get the id I did packet[0]
, but I am not sure if this is the correct way, and I still have no idea how the fields are separated.
Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论