Protocol core-GUI » History » Version 5
Greg Burri, 07/14/2009 11:50 PM
1 | 1 | Greg Burri | h1. Protocol core-GUI |
---|---|---|---|
2 | |||
3 | This page describes the protocol used by Aybabtu for network communication between core and GUI. |
||
4 | 2 | Greg Burri | |
5 | 1 | Greg Burri | See source:protos/gui_protocol.proto for message details. |
6 | |||
7 | !gui_protocol.png! |
||
8 | 5 | Greg Burri | |
9 | * There's can be many GUI connected to one core. This is not a goal to achieve but it can be easily done with the chosen protocol. |
||
10 | * All communication is made on a single TCP connection which is never closed. |
||
11 | |||
12 | h2. Message types |
||
13 | |||
14 | There is three types of message. |
||
15 | |||
16 | * _Core -> GUI_ State : The all state is periodically sent to the GUI, for example each second. |
||
17 | * _Core -> GUI_ Event : Some events can occurs asynchronously like a new chat message or a new log entry. |
||
18 | * _GUI -> Core_ Command : The GUI can send commands to the Core to tell it what to do like download this or browse that. It may or not have a respond from the Core depending of the message. |