Protocol is based on protocol TCP. It is possible to use raw TCP packets or to use SSL for data encryption. Transferred data are organized in the frames. Frame is base unit for higher protocol layers. Each frame can be used to transfer data file, method call, testing packet etc.

Basic structure of the frame is on following picture:

0123 4567 8901 234........... END 4 bytes
MGID FRTP FRSZ .....FRDT......FRCS 

Protocol is initialized in 3 steps:

  • Connected - waiting for Hello packet

  • Introduced - after hello packet and waiting for authorization

  • Authorized

Protocol have to be in Authorized to be able to transfer documents (the section called “Authorization”). When protocol is authorized there are no other required steps. However transfered document or file has its own transfer states.

Numeric values (MGID, FRTP, FRSZ, ...) are transffered as LittleEndian (typicaly used on x86).

Note

Protocol implementation can limit maximal size of the frame (FRSZ). We recommend to limit frame size for security reasons.