X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilcd%2Fserver_internal.h;h=9f51174a0652b74f0ef1708c7f447e4a7e0c5abf;hp=cc0b00e3c586723fb9dedd7c2b4c31a9e8a723aa;hb=e5d8d3db6caa344b3d419b884556c21b15e7d123;hpb=2ccba0fda23268cb45841b5984fc31b4287a3d4b diff --git a/apps/silcd/server_internal.h b/apps/silcd/server_internal.h index cc0b00e3..9f51174a 100644 --- a/apps/silcd/server_internal.h +++ b/apps/silcd/server_internal.h @@ -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;