X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fserver_backup.h;h=42df86e28f3a8b9c60a202017f443bfc80cf8758;hb=33b943ac6034b92fcc5c09802f9fe9add12a51c9;hp=25fe49dbb33dfdd3f7ffb86e8e37128f215e2f38;hpb=e5d8d3db6caa344b3d419b884556c21b15e7d123;p=silc.git diff --git a/apps/silcd/server_backup.h b/apps/silcd/server_backup.h index 25fe49db..42df86e2 100644 --- a/apps/silcd/server_backup.h +++ b/apps/silcd/server_backup.h @@ -20,6 +20,15 @@ #ifndef SERVER_BACKUP_H #define SERVER_BACKUP_H +/* Backup resuming protocol types */ +#define SILC_SERVER_BACKUP_START 1 +#define SILC_SERVER_BACKUP_START_GLOBAL 2 +#define SILC_SERVER_BACKUP_CONNECTED 3 +#define SILC_SERVER_BACKUP_ENDING 4 +#define SILC_SERVER_BACKUP_RESUMED 5 +#define SILC_SERVER_BACKUP_RESUMED_GLOBAL 6 +#define SILC_SERVER_BACKUP_REPLACED 20 + /* Adds the `backup_server' to be one of our backup router. This can be called multiple times to set multiple backup routers. If `local' is TRUE then the `backup_server' is in the local cell, if FALSE it is @@ -53,10 +62,9 @@ bool silc_server_backup_replaced_get(SilcServer server, SilcServerID *server_id, SilcServerEntry *server_entry); -/* Deletes the IP address and port from the `server_id' from being replaced - by an backup router. */ +/* Deletes a replaced host by the set `server_entry. */ void silc_server_backup_replaced_del(SilcServer server, - SilcServerID *server_id); + SilcServerEntry server_entry); /* Broadcast the received packet indicated by `packet' to all of our backup routers. All router wide information is passed using broadcast packets.