Difference between revisions of "Directory Client Protocol"

From ASSS Wiki
Jump to: navigation, search
(initial page and content from updated dir-client-prot.txt)
 
(removed core protocol, see Core Protocol)
Line 1: Line 1:
Core protocol is same as usual. Dirserv specific c2s/s2c protocol.
+
[[Core Protocol]] is used as usual. Dirserv specific c2s/s2c protocol.
  
Ctm sends a sync request and ss doesn't (obviously).
+
Continuum sends a sync request and Subspace doesn't.
 
The list request is sent as reliable.
 
The list request is sent as reliable.
  
Line 13: Line 13:
  
 
s2c
 
s2c
 +
 +
0x01 list data
 
offset size comment
 
offset size comment
 
0      1    type 0x01
 
0      1    type 0x01
Line 23: Line 25:
 
79    ?    description
 
79    ?    description
 
packet repeats from offset 1 until end
 
packet repeats from offset 1 until end
 
core
 
 
0x01 login
 
offset size comment
 
0      1    type 0x00
 
1      1    type 0x01
 
2      4    client key
 
6      2    protocol version (vie = 0x01, ctm = 0x11)
 
 
0x02 login response
 
offset size comment
 
0      1    type 0x00
 
1      1    type 0x02
 
2      4    ~client key (negative)
 
 
0x03 reliable header
 
offset size comment
 
0      1    type 0x00
 
1      1    type 0x03
 
2      4    packet id
 
6      ?    payload (514 max)
 
 
0x04 reliable acknowledge
 
offset size comment
 
0      1    type 0x00
 
1      1    type 0x04
 
2      4    packet id
 
 
0x05 sync
 
offset size comment
 
0      1    type 0x00
 
1      1    type 0x05
 
2      4    local time
 
6      4    packets sent
 
10    4    packets received
 
 
0x06 sync response
 
offset size comment
 
0      1    type 0x00
 
1      1    type 0x06
 
2      4    time from last received 0x05 packet
 
6      4    server time
 
 
0x07 disconnect
 
offset size comment
 
0      1    type 0x00
 
1      1    type 0x07
 
 
0x0A segment
 
offset size comment
 
0      1    type 0x00
 
1      1    type 0x0A
 
2      4    total length of all segments
 
6      ?    payload (514 max, but expect 480)
 
keep appending payloads until total length is reached
 
 
</pre>
 
</pre>
  
 
[[Category: Protocol]]
 
[[Category: Protocol]]

Revision as of 16:17, 12 January 2005

Core Protocol is used as usual. Dirserv specific c2s/s2c protocol.

Continuum sends a sync request and Subspace doesn't. The list request is sent as reliable.

c2s

0x01 list request
offset size comment
0      1    type 0x01
1      4    minimum players

s2c

0x01 list data
offset size comment
0      1    type 0x01
1      4    ip
5      2    port
7      2    player count
9      2    billing (on 0x01 0x00)
11     4    version (0x86 0x00 0x00 0x00)
15     64   name
79     ?    description
packet repeats from offset 1 until end