Skip to content

Communication protocol

Jaume Martin edited this page Nov 22, 2017 · 7 revisions

Message type

Field Type Comment
ULID String Unique identifier
CMD Enum Command
Params String Parameters for the command
Result String Command result
Data String Extra field for commands or resutls
Error Boolean

Communication protocol

     Endpoint                                           Server

                  ULID: Nil, CMD: Register
        +------------------------------------------------>
                                                         |
                                                         | Register + Generate ULID
                  ULID: ulid, Result: OK                 |
        <------------------------------------------------+


                  ULID: ulid, CMD: Ping
        +------------------------------------------------>
                                                         |
                                                         | Check schedule
                  ULID: ulid, CMD: Ping, Result: Pong    |
        <------------------------------------------------+


                  ULID: ulid, CMD: Ping
        +------------------------------------------------>
                                                         |
                                                         | Check schedule
                  ULID: ulid, CMD: Scan, Data: Rules     |
        <------------------------------------------------+
        |
Execute |
command |         ULID: ulid, CMD: Scan, Result: Result
        +------------------------------------------------>
                                                         |
                                                         | Update report
                  ULID: ulid, CMD: nil, Data: ACK        |
        <------------------------------------------------+

Back

Clone this wiki locally