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.
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;