Protocols » History » Version 5
Greg Burri, 11/06/2009 04:24 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 | 5 | Greg Burri | Each data sent over the network (using TCP or UDP) are formatted like this : |
9 | 3 | Greg Burri | |
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. |