我如何了解数据包?

发布于 2025-02-07 03:44:31 字数 473 浏览 1 评论 0原文

我正在Python中创建服务器软件。

我还使用 https://wiki.vg/bed/bed/bed/bedrock_protocol 已记录了我使用的协议。 根据此网站的说法,客户端将发送一个带有0x01的ID的登录数据包,然后它具有三个字段。

当我收到它时,该数据包是我认为是二进制的一堆(0x000x01之类的东西)。

那么,如何找出数据包的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文