Project

General

Profile

Protocols » History » Revision 5

Revision 4 (Greg Burri, 11/03/2009 05:20 PM) → Revision 5/26 (Greg Burri, 11/06/2009 04:24 PM)

h1. Protocols 

 * [[Protocol core-core]] 
 * [[Protocol core-GUI]] 

 There is two main protocols, one between cores and one between GUI and core. Both used "protocol buffers":http://code.google.com/p/protobuf/ for describing the exchanged messages. 

 Each data sent over the network (using TCP or UDP) are formatted like this : 

 <pre> 
 <messageType:uint32><size:uint32><serializedMessage> 
 </pre> 

 Where : 
 * _messageType_ is a number which determine the message type, more information in the proto files. 
 * _size_ is the size of the following serialized message. 
 * _serializedMessage_ is the data serialized by protocol buffer.