updates.
[silc.git] / apps / silcd / server_internal.h
index cc0b00e3c586723fb9dedd7c2b4c31a9e8a723aa..9f51174a0652b74f0ef1708c7f447e4a7e0c5abf 100644 (file)
@@ -56,21 +56,6 @@ typedef struct {
   uint32 packets_received;       /* Received packets */
 } SilcServerStatistics;
 
-typedef struct {
-  SilcSocketConnection sock;
-
-  /* Remote host name and port */
-  char *remote_host;
-  int remote_port;
-  
-  /* Current connection retry info */
-  uint32 retry_count;
-  uint32 retry_timeout;
-
-  /* Back pointer to server */
-  SilcServer server;
-} *SilcServerConnection;
-
 /* 
    SILC Server Object.
 
@@ -79,21 +64,24 @@ struct SilcServerStruct {
   char *server_name;
   int server_type;
   int sock;
-  int standalone;
-  int listenning;
   SilcServerID *id;
   unsigned char *id_string;
   uint32 id_string_len;
   SilcIdType id_type;
 
-  /* Current command identifier, 0 not used */
-  uint16 cmd_ident;
+  bool standalone;                  /* TRUE if server is standalone, and
+                                       does not have connection to network. */
+  bool listenning;                  /* TRUE if server is listenning for
+                                       incoming connections. */
 
-  /* Server's own ID entry. */
-  SilcServerEntry id_entry;
+  SilcServerEntry id_entry;         /* Server's own ID entry */
+  SilcServerEntry router;           /* Pointer to the primary router */
+  unsigned long router_connect;             /* Time when router was connected */
+  SilcServerBackup backup;          /* Backup routers */
+  bool backup_router;
 
-  /* Back pointer to the primary router of this server. */
-  SilcServerEntry router;
+  /* Current command identifier, 0 not used */
+  uint16 cmd_ident;
 
   /* SILC server scheduler */
   SilcSchedule schedule;