mirror of
https://github.com/moparisthebest/rswiki-book
synced 2024-12-22 15:38:52 -05:00
Create MediaWiki page 'Ondemand Protocol'
This commit is contained in:
parent
a198ce0628
commit
ea7dab6807
@ -1,6 +1,6 @@
|
||||
<!-- DO NOT EDIT THIS FILE, CODE AUTOMATICALLY GENERATED BY category.sh -->
|
||||
The following categories contain pages or media.
|
||||
* [[Category Cache]] (1 members)
|
||||
* [[Category Cache]] (2 members)
|
||||
* [[Category Data Type]] (3 members)
|
||||
* [[Category Packet]] (91 members)
|
||||
* [[Category Packet 194]] (4 members)
|
||||
|
@ -5,5 +5,6 @@
|
||||
== '''Ondemand Protocol''' ==
|
||||
<!-- DO NOT EDIT BELOW THIS LINE, OR CHANGE THIS COMMENT, CODE AUTOMATICALLY GENERATED BY category.sh -->
|
||||
== '''Pages in category "Cache"''' ==
|
||||
The following 1 pages are in this category.
|
||||
The following 2 pages are in this category.
|
||||
* [[JAGGRAB Protocol]]
|
||||
* [[Ondemand Protocol]]
|
||||
|
29
Ondemand-Protocol.mediawiki
Normal file
29
Ondemand-Protocol.mediawiki
Normal file
@ -0,0 +1,29 @@
|
||||
[[Category Cache]]
|
||||
|
||||
== Introduction ==
|
||||
|
||||
The 'Ondemand' protocol is used to stream updates to the cache. The client knows which files to update from the CRC file downloaded using the [[Category JAGGRAB Protocol|JAGGRAB protocol]].
|
||||
|
||||
== Request packet ==
|
||||
|
||||
The client first authenticates as an ondemand client by using the opcode '15' (as opposed to the game, which uses the type '14').
|
||||
|
||||
The format of the request is:
|
||||
|
||||
unsigned byte cacheId;
|
||||
unsigned short fileId;
|
||||
unsigned byte priority;
|
||||
|
||||
There can be multiple requests per session.
|
||||
|
||||
== Response packet ==
|
||||
|
||||
The response is sent in blocks. The maximum size of a block is 500 bytes. Smaller blocks (at the end of a file) are permitted.
|
||||
|
||||
Each block has the format:
|
||||
|
||||
unsigned byte cacheId;
|
||||
unsigned short fileId;
|
||||
unsigned short fileSize;
|
||||
unsigned byte blockNumber;
|
||||
unsigned byte[] blockData;
|
Loading…
Reference in New Issue
Block a user