diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-08-30 14:24:33 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-08-30 14:24:33 +0300 |
commit | 4af1f2963c54300b168deb0eada25ecfb8822d1b (patch) | |
tree | 3f7ebeb7ffffc8a1aab17b54e91d726e9f1b426c /doc | |
parent | ba0322f353b8dd583bd3a5cbb4549d8a82fc71f0 (diff) | |
parent | cab426ffa3feaf1a36b35342b68adce83456c00d (diff) | |
download | minetest-4af1f2963c54300b168deb0eada25ecfb8822d1b.tar.gz minetest-4af1f2963c54300b168deb0eada25ecfb8822d1b.tar.bz2 minetest-4af1f2963c54300b168deb0eada25ecfb8822d1b.zip |
Merge remote-tracking branch 'kahrl/dissector'
Diffstat (limited to 'doc')
-rw-r--r-- | doc/protocol.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/protocol.txt b/doc/protocol.txt index da2d3394f..82dca59bf 100644 --- a/doc/protocol.txt +++ b/doc/protocol.txt @@ -42,7 +42,7 @@ Initialization: u8 channel = 0 # Control packet header u8 type = TYPE_CONTROL = 0 - u8 controltype = CONTROLTYPE_DISCO = 2 + u8 controltype = CONTROLTYPE_DISCO = 3 - Here's a quick untested connect-disconnect done in PHP: # host: ip of server (use gethostbyname(hostname) to get from a dns name) @@ -61,7 +61,7 @@ function check_if_minetestserver_up($host, $port) $peer_id = substr($buf, 9, 2); # Disconnect - $buf = "\x4f\x45\x74\x03".$peer_id."\x00\x00\x02"; + $buf = "\x4f\x45\x74\x03".$peer_id."\x00\x00\x03"; socket_sendto($socket, $buf, strlen($buf), 0, $host, $port); socket_close($socket); |