|Direction:||Peer to Peer|
|Used By:||Starcraft Original, Starcraft Broodwar|
Starcraft Shareware, Starcraft Japanese
Packet CLS 1.
This packet is used to manage map downloading. Some important things to note: Players don't just download the map from the host. The host can request other ingame players send it, if they already have it. Data blocks are send in blocks of 128 bytes at a time, but you can get away with 256 blocks with out issue.
Event 0x00 [C>H]: Tells the host if you have the map or not. For example, the map positon tells the host where to start sending the file from. If you already have the map, then the Map position should be the lengh of the file.
Event 0x01 [H>C]: Asks a player if they have the given map. Players should respond to this, with event 0x00.
Event 0x02 [H>C]: Tells the receiving player, to send the map to another player.
Event 0x03 [H>C]: I'm not to sure about this one. This is send to a player who has just finished sending the map to another player, and also when the game is starting.
Event 0x04 [C>C]: Used to send a block of the map to another player. Receiving players should verify the block of data, by sending event 0x05. Any breaks in the UDP stream should be managed with standard resend requests.
Event 0x05 [C>C]: Verifies the position of the map you are currently at. This should be sent as a respone to event 0x04.