-/*
- Silc Server Params.
-
- Structure to hold various default parameters for server that can be
- given before running the server.
-
-*/
-typedef struct {
- uint32 retry_count;
- uint32 retry_interval_min;
- uint32 retry_interval_min_usec;
- uint32 retry_interval_max;
- char retry_keep_trying;
-
- uint32 protocol_timeout;
- uint32 protocol_timeout_usec;
-
- char require_reverse_mapping;
-} *SilcServerParams;
-
-/* Callback function that is called after the key exchange and connection
- authentication protocols has been completed with a remote router. The
- `server_entry' is the remote router entry. */
-typedef void (*SilcServerConnectRouterCallback)(SilcServer server,
- SilcServerEntry server_entry,
- void *context);
-
-typedef struct {
- SilcSocketConnection sock;
-
- /* Remote host name and port */
- char *remote_host;
- int remote_port;
- bool backup;
- char *backup_replace_ip;
- int backup_replace_port;
- bool no_reconnect;
-
- /* Current connection retry info */
- uint32 retry_count;
- uint32 retry_timeout;
-
- /* Back pointer to server */
- SilcServer server;
-
- SilcServerConnectRouterCallback callback;
- void *callback_context;
-} *SilcServerConnection;
+#define SILC_SERVER_KEEPALIVE 300 /* Heartbeat interval */
+#define SILC_SERVER_CHANNEL_REKEY 3600 /* Channel rekey interval */
+#define SILC_SERVER_REKEY 3600 /* Session rekey interval */
+#define SILC_SERVER_SKE_TIMEOUT 60 /* SKE timeout */
+#define SILC_SERVER_CONNAUTH_TIMEOUT 60 /* CONN_AUTH timeout */
+#define SILC_SERVER_MAX_CONNECTIONS 1000 /* Max connections */
+#define SILC_SERVER_MAX_CONNECTIONS_SINGLE 1000 /* Max connections per host */
+#define SILC_SERVER_LOG_FLUSH_DELAY 300 /* Default log flush delay */
+#define SILC_SERVER_QOS_RATE_LIMIT 10 /* Default QoS rate limit */
+#define SILC_SERVER_QOS_BYTES_LIMIT 2048 /* Default QoS bytes limit */
+#define SILC_SERVER_QOS_LIMIT_SEC 0 /* Default QoS limit sec */
+#define SILC_SERVER_QOS_LIMIT_USEC 500000 /* Default QoS limit usec */
+#define SILC_SERVER_CH_JOIN_LIMIT 50 /* Default join limit */