5个版本
0.1.4 | 2023年3月19日 |
---|---|
0.1.3 | 2023年3月14日 |
0.1.2 | 2023年3月7日 |
0.1.1 | 2023年3月7日 |
0.1.0 | 2023年3月5日 |
在网络编程中排名第1783
每月下载量33次
250KB
6.5K SLoC
Minetest-shark
具有详细协议检查的Minetest代理
示例用法
$ cargo install minetest-shark
# Listen on port 40000, forward to localhost port 30000, verbosity 1
$ mtshark -l 40000 -t 127.0.0.1:30000 -v
MinetestServer starting on 0.0.0.0:40000
MinetestServer started
MinetestServer accepted connection
[P1] New client connected from 127.0.0.1:34997
[1] C->S Null
[1] C->S Init
[1] S->C Hello
[1] C->S SrpBytesA
[1] S->C SrpBytesSB
[1] C->S SrpBytesM
[1] S->C AuthAccept
[1] C->S Init2
[1] S->C Itemdef
[1] S->C Nodedef
[1] S->C AnnounceMedia
[1] S->C DetachedInventory
[1] S->C DetachedInventory
...
$ mtshark -l 40000 -t 127.0.0.1:30000 -vv
MinetestServer starting on 0.0.0.0:40000
MinetestServer started
MinetestServer accepted connection
[P1] New client connected from 127.0.0.1:56772
[1] C->S Null(
NullSpec,
)
[1] C->S Init(
InitSpec {
serialization_ver_max: 29,
supp_compr_modes: 0,
min_net_proto_version: 37,
max_net_proto_version: 41,
player_name: "paradust",
},
)
[1] S->C Hello(
HelloSpec {
serialization_ver: 29,
compression_mode: 0,
proto_ver: 41,
auth_mechs: AuthMechsBitset {
legacy_password: false,
srp: true,
first_srp: false,
},
username_legacy: "paradust",
},
)
[1] C->S SrpBytesA(
SrpBytesASpec {
bytes_a: BinaryData16 {
data: [
164,
91,
54,
....
详细程度级别
default Shows connects/disconnects only
-v Command names
-vv Command contents (except for bulk commands)
-vvv Everything
依赖关系
~9–17MB
~213K SLoC