Difference between revisions of "Ondemand Protocol"

From RuneWiki
Jump to navigationJump to search
m
Line 4: Line 4:
  
 
The client first authenticates as an ondemand client by using the opcode '15' (as opposed to the game, which uses the type '14').
 
The client first authenticates as an ondemand client by using the opcode '15' (as opposed to the game, which uses the type '14').
 +
 +
Meanz {
 +
Then the client demands you to send 8 blank bytes back to the client to verify the authentication.
 +
}
  
 
The format of the request is:
 
The format of the request is:

Revision as of 00:51, 17 August 2009

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 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').

Meanz { Then the client demands you to send 8 blank bytes back to the client to verify the authentication. }

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;