CONNECT, CLOSE and SHUTDOWN commands.
[silc.git] / apps / silcd / server_internal.h
index 37236c34e7ad806045675f36cefd52411e3aa088..bc0e3d755d8bacb00cdb1bc43e946bc70e84471f 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
 
-  Copyright (C) 1997 - 2000 Pekka Riikonen
+  Copyright (C) 1997 - 2001 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -57,7 +57,6 @@ typedef struct {
 } SilcServerStatistics;
 
 typedef struct {
-  void *id_entry;
   SilcSocketConnection sock;
 
   /* Remote host name and port */
@@ -87,6 +86,9 @@ struct SilcServerStruct {
   unsigned int id_string_len;
   SilcIdType id_type;
 
+  /* Current command identifier, 0 not used */
+  unsigned short cmd_ident;
+
   /* Server's own ID entry. */
   SilcServerEntry id_entry;
 
@@ -124,7 +126,7 @@ struct SilcServerStruct {
   SilcHmac sha1hmac;
 
   /* Configuration object */
-  SilcConfigServer config;
+  SilcServerConfig config;
 
   /* Random pool */
   SilcRng rng;
@@ -144,6 +146,11 @@ struct SilcServerStruct {
 #endif
 };
 
+/* Server's heartbeat context */
+typedef struct {
+  SilcServer server;
+} *SilcServerHBContext;
+
 /* Macros */
 
 /* Registers generic task for file descriptor for reading from network and