Project

General

Profile

Protocol core-GUI » History » Revision 5

Revision 4 (Greg Burri, 07/14/2009 11:41 PM) → Revision 5/8 (Greg Burri, 07/14/2009 11:50 PM)

h1. Protocol core-GUI 

 This page describes the protocol used by Aybabtu for network communication between core and GUI. 

 See source:protos/gui_protocol.proto for message details. 

 !gui_protocol.png! 

 * 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. 
 * All communication is made on a single TCP connection which is never closed. 

 h2. Message types 

 There is three types of message. 

 * _Core -> GUI_ State : The all state is periodically sent to the GUI, See source:protos/gui_protocol.proto for example each second. 
 * _Core -> GUI_ Event : Some events can occurs asynchronously like a new chat message or a new log entry. details. 

 !gui_protocol.png! 
 * _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.