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