version 0.9.6
[rofl0r-htun.git] / include / srvproto2.h
blobbaa8041f011387e95fac23094185a5b299a58cb6
1 /* -------------------------------------------------------------------------
2 * srvproto2.h - htun protocol 2 functions for the server side
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: srvproto2.h,v 1.8 2002/04/13 22:04:43 jehsom Exp $ */
23 #ifndef __SRVPROTO2_H
24 #define __SRVPROTO2_H
26 #include "clidata.h"
28 #define CP2_OK_MAXBODY 50
30 clidata_t *handle_cp( int clisock, char *hdrs, int protover );
32 clidata_t *handle_cr( int clisock, char *hdrs );
34 int handle_f_p2( clidata_t **client );
36 int handle_s_p2( clidata_t *client, char *hdrs );
38 int handle_r_p2( clidata_t *client, char *hdrs );
40 #endif