summaryrefslogtreecommitdiff
path: root/src/analysis/db/protocol.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-10-13 23:24:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-10-13 23:24:57 (GMT)
commitf439711a77e0719e7f1dcf4b5c5511157986c918 (patch)
treecac0cf37be2676fcf2dc958f9d9fd2fadea20653 /src/analysis/db/protocol.h
parent986125d4c2d8b049017b6d0770f16b9058076165 (diff)
Retrieved the current snapshot identifier from servers.
Diffstat (limited to 'src/analysis/db/protocol.h')
-rw-r--r--src/analysis/db/protocol.h58
1 files changed, 53 insertions, 5 deletions
diff --git a/src/analysis/db/protocol.h b/src/analysis/db/protocol.h
index b42ad15..22f564a 100644
--- a/src/analysis/db/protocol.h
+++ b/src/analysis/db/protocol.h
@@ -127,8 +127,8 @@ typedef enum _DBCommand
* [ Statut d'exécution ; cf. DBError ]
*
* Les traitements se réalisent dans :
- * - g_db_client_save() pour la partie client en émission.
- * - g_cdb_archive_process() pour la partie serveur.
+ * - g_db_client_save() pour la partie client en émission ;
+ * - g_cdb_archive_process() pour la partie serveur ;
* - g_db_client_update() pour la partie client en réception.
*
*/
@@ -165,7 +165,7 @@ typedef enum _DBCommand
* [ marqueur de fin : octet 0x0 ]
*
* Les traitements se réalisent dans :
- * - g_db_client_update() pour la partie client.
+ * - g_db_client_update() pour la partie client ;
* - g_cdb_archive_process() pour la partie serveur.
*
*/
@@ -179,7 +179,7 @@ typedef enum _DBCommand
* Le client connecté envoie un paquet de la forme suivante :
*
* [ Statut d'historique : DBC_SET_LAST_ACTIVE ]
- * [ <horodatage du dernier élément actif ]
+ * [ <horodatage du dernier élément actif> ]
*
* Le serveur s'exécute et notifie le client d'éventuels changements,
* avec une série de paquets de la forme :
@@ -189,13 +189,61 @@ typedef enum _DBCommand
* [ <élément dont le statut a évolué> ]
*
* Les traitements se réalisent dans :
- * - g_db_collection_disable_at() pour la partie serveur.
+ * - g_db_collection_disable_at() pour la partie serveur ;
* - g_db_collection_update_item_state() pour la partie client.
*
*/
DBC_SET_LAST_ACTIVE, /* Définition du dernier actif */ // REMME
+ /* ------- Gestion des instantanés ------- */
+
+ DBC_SNAPSHOTS_UPDATED, /* Identification d'instantanés*/
+
+ /**
+ * Gestion de la commande 'DBC_GET_CUR_SNAPSHOT'.
+ *
+ * Le client connecté envoie un paquet de la forme suivante :
+ *
+ * [ Gestion d'instantané : DBC_GET_CUR_SNAPSHOT ]
+ *
+ * La définition d'un nouvel identifiant d'instantané courant se réalise dans :
+ * - g_hub_client_update() pour la partie client ;
+ * - g_cdb_archive_process() pour la partie serveur.
+ */
+
+ DBC_GET_CUR_SNAPSHOT, /* Demande d'identification */
+
+ /**
+ * Gestion de la commande 'DBC_CUR_SNAPSHOT_UPDATED'.
+ *
+ * Le serveur envoie au client un paquet de la forme suivante :
+ *
+ * [ Gestion d'instantané : DBC_CUR_SNAPSHOT_UPDATED ]
+ * [ <identifiant d'instantané> ]
+ *
+ * La définition d'un nouvel identifiant d'instantané courant se réalise dans :
+ * - g_cdb_archive_process() pour la partie serveur ;
+ * - g_hub_client_update() pour la partie client.
+ */
+
+ DBC_CUR_SNAPSHOT_UPDATED, /* Mise à jour de l'instantané */
+
+ /**
+ * Gestion de la commande 'DBC_SET_CUR_SNAPSHOT'.
+ *
+ * Le client connecté envoie un paquet de la forme suivante :
+ *
+ * [ Gestion d'instantané : DBC_SET_CUR_SNAPSHOT ]
+ * [ <identifiant d'instantané> ]
+ *
+ * La définition d'un nouvel identifiant d'instantané courant se réalise dans :
+ * - g_hub_client_set_current_snapshot() pour la partie client ;
+ * -
+ */
+
+ DBC_SET_CUR_SNAPSHOT, /* Définition de l'instantané */
+
DBC_COUNT
} DBCommand;