Protocols » History » Version 4
Greg Burri, 11/03/2009 05:20 PM
1 | 1 | Greg Burri | h1. Protocols |
---|---|---|---|
2 | |||
3 | 4 | Greg Burri | * [[Protocol core-core]] |
4 | * [[Protocol core-GUI]] |
||
5 | |||
6 | 2 | Greg Burri | 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. |
7 | 1 | Greg Burri | |
8 | 3 | Greg Burri | Each data sent over the network are formatted like this : |
9 | |||
10 | <pre> |
||
11 | <messageType:uint32><size:uint32><serializedMessage> |
||
12 | </pre> |
||
13 | |||
14 | Where : |
||
15 | * _messageType_ is a number which determine the message type, more information in the proto files. |
||
16 | 1 | Greg Burri | * _size_ is the size of the following serialized message. |
17 | * _serializedMessage_ is the data serialized by protocol buffer. |