1 /* -------------------------------------------------------------------------
2 * server.h - htun server defs
3 * Copyright (C) 2002 Moshe Jacobson <moshe@runslinux.net>,
4 * Ola Nordström <ola@triblock.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 * -------------------------------------------------------------------------
21 /* $Id: server.h,v 2.13 2002/08/07 17:24:45 jehsom Exp $ */
29 /* Initializes the server. Returns the value that will go to the OS */
30 int server_main( void );
33 * Other files call this function to start the tunfile reader thread
35 int srv_start_tunfile_reader( clidata_t
*client
);
38 * Other files call this function to start the tunfile writer thread
40 int srv_start_tunfile_writer( clidata_t
*client
);
42 extern clidata_list_t
*clients
;