服务器地址长度 = getVarInt (取字节集长度 (服务器地址))
服务器端口 = VarIntHex (端口)
Next_state = getVarInt (1) ' 请求类型
Packet = Packet_id + 游戏协议版本 + 服务器地址长度 + 服务器地址 + 服务器端口 + Next_state ' 内容打包
Packet = getVarInt (取字节集长度 (Packet)) + Packet ' 取包长度合并再次打包
status_request = getVarInt (0)
status_request = getVarInt (取字节集长度 (status_request)) + status_request
下一篇 字节集转汇编指令软件纯算法