summaryrefslogtreecommitdiff
path: root/src/net/server.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-10-08 20:30:28 +0200
committerHenrik Rydberg <rydberg@euromail.se>2011-10-08 20:30:28 +0200
commit5df79c53745fde5d6c3340a2979b1429cd5892c1 (patch)
tree1a81af141708b826e9c61e8a04019994fcca8298 /src/net/server.h
Initial import of htcd system 1.0
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/net/server.h')
-rw-r--r--src/net/server.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/net/server.h b/src/net/server.h
new file mode 100644
index 0000000..65f884c
--- /dev/null
+++ b/src/net/server.h
@@ -0,0 +1,46 @@
1/*************************************************************************
2 *
3 * HTCd - Copyright (C) 1998-2006 Henrik Rydberg
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef SERVERH
21#define SERVERH
22
23#include <serv/htcd.h>
24#include <hdb/buffer.h>
25#include <net/isocket.h>
26#include <mt/lock.h>
27#include <signal.h>
28
29const mstring http_ver="HTTP/";
30const double http_minor=1.0,http_major=1.1;
31
32const mstring keep_tag="Keep-Alive";
33const mstring close_tag="Close";
34const mstring expect_continue_tag="100-continue";
35
36struct htcServ {
37 HTCd htcd;
38 tokmap user;
39 mstring server;
40 htcServ(const sref& path);
41};
42
43int SendStatus(isocket& out,htcd_req& R,int keep,
44 const sref& status,const sref& msg=ms_empty);
45
46#endif