rswiki-book/474-Protocol.mediawiki

50 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-06-18 00:24:54 -04:00
[[Category Packet]]
[[Category Packet 474]]
2011-06-20 00:55:37 -04:00
[[Category RS2]]
2011-06-18 00:24:54 -04:00
2011-06-18 00:54:25 -04:00
Not much progress has been made with this revision, don't worry about it too much.
== '''Packet structure''' ==
2011-06-20 00:01:10 -04:00
When the client sends a packet to the server, the first byte encapsulates its opcode. This specific opcode is encrypted with a value generated by the ISAAC PRNG seeded with a dynamically server generated key during the login block. The server decrypts it and associates the opcode to the packet's respective predefined size. If the packet does not contain a fixed size, the opcode will be followed by either a byte or a word - varying per packet - for its proper size. This is then followed by the payload.
2011-06-18 00:54:25 -04:00
== '''Login''' ==
?
== '''Incoming Data''' ==
'''TODO:''' Document packet structures
<table border="1" cellpadding="3" cellspacing="3">
<tr>
<td><b>opcode</b></td>
<td><b>usage</b></td>
2011-06-18 01:53:06 -04:00
<td><b>size</b></td>
2011-06-18 00:54:25 -04:00
<td><b>payload</b></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
2011-06-18 01:53:06 -04:00
<td></td>
2011-06-18 00:54:25 -04:00
</tr>
</table>
== '''Outgoing Data''' ==
'''TODO:''' Document packet structures
<table border="1" cellpadding="3" cellspacing="3">
<tr>
<td><b>opcode</b></td>
<td><b>usage</b></td>
2011-06-18 01:53:06 -04:00
<td><b>size</b></td>
2011-06-18 00:54:25 -04:00
<td><b>payload</b></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
2011-06-18 01:53:06 -04:00
<td></td>
2011-06-18 00:54:25 -04:00
</tr>
</table>