Added SILC Server library.
[silc.git] / lib / silcserver / server_st_connect.c
1 /*
2
3   server_st_connect.c
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 1997 - 2005 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 #include "silc.h"
21 #include "silcserver.h"
22 #include "server_internal.h"
23
24 /* Creates connection to configured router(s) */
25
26 SILC_FSM_STATE(silc_server_st_connect_router)
27 {
28   SilcServer server = fsm_context;
29
30   SILC_LOG_DEBUG(("Connecting to router(s)"));
31
32   /** Wait events */
33   server->connect_router = FALSE;
34   silc_fsm_next(fsm, silc_server_st_run);
35   return SILC_FSM_CONTINUE;
36 }