Changes between Version 7 and Version 8 of Software/Gateway


Ignore:
Timestamp:
08/31/10 17:59:34 (14 years ago)
Author:
art
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Software/Gateway

    v7 v8  
    115115}}} 
    116116 
    117 ...in work... 
     117Every message sent over the network and to/from the server must have this form. Here ''x'' indicates reserved/non-used bytes. ''src'' and ''dst'' are the IBus-Device ids for source and destination respectively. ''len'' indicates the amount of bytes passed in the data field. Data field can be send in another TCP frame or together with the header. ''priority'' sets the priority of a message to be sent over IBus.  
     118 
     119There are also exists special messages sent between server and the client. This special messages are required for establishing communication and checking if client is still alive for example. Every message in which header ''len'' is set to 0, is a special message. There are currently existing following special message types: 
     120 
     121  * '''Ping''': ''src=0xAA'', ''dst=0xAA'' - is sent by a client every 3 seconds to indicate that the client is still alive 
     122  * '''Hello''': ''src='h' '', ''dst='i' '' - is sent by a client to the server before any other message. Server response to this message with a '''Connect''' message and creates a socket connection on a reserved '''port'''. 
     123  * '''Connect''': ''src='c' '', ''dst='t' '' - is sent by a server to client to indicate that connection is established. The ''priority'' field of the header contains the '''port''' number to which client's socket has to connect to. 
     124  * '''Disconnect''': ''src=0'', ''dst=0'' - is sent by a client to the server, to indicate that client is disconnecting. Server will free resources and mark the used port as free again. 
     125  
    118126 
    119127=== Server ===