aboutsummaryrefslogtreecommitdiff
path: root/src/clientinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/clientinfo.h')
-rw-r--r--src/clientinfo.h103
1 files changed, 0 insertions, 103 deletions
diff --git a/src/clientinfo.h b/src/clientinfo.h
deleted file mode 100644
index c3315bbd..00000000
--- a/src/clientinfo.h
+++ /dev/null
@@ -1,103 +0,0 @@
1/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved.
2 *
3 * See the LICENSE file
4 *
5 * The origin of this software must not be misrepresented, either by
6 * explicit claim or by omission. Since few users ever read sources,
7 * credits must appear in the documentation.
8 *
9 * date: Wed Oct 9 19:05:48 GMT 2002
10 *
11 *
12 * --
13 *
14 */
15
16#ifndef _CLIENTINFO_H_
17#define _CLIENTINFO_H_
18
19#include <stdio.h>
20#include <fcntl.h>
21#include <string.h>
22#include "client.h"
23#include "utils.h"
24#include "memory.h"
25
26/*
27 * Next's structs are redudant but it is an case of logic (spell)
28 */
29struct _Header {
30 char *id;
31 char *data;
32 struct _Header *next;
33};
34struct _Query {
35 unsigned int index;
36 unsigned int idf;
37 char *id;
38 char *data;
39 struct _Query *next;
40};
41struct _Post {
42 unsigned int index;
43 unsigned int idf;
44 char *id;
45 char *data;
46 struct _Post *next;
47};
48
49struct _MultiPart {
50 char *id;
51 char *data;
52 unsigned int size;
53 char *filename;
54 struct _MultiPart *next;
55};
56
57struct _Cookie {
58 char *id;
59 char *data;
60 struct _Cookie *next;
61};
62
63struct ClientInfo {
64 int outfd;
65 char *inetname;
66 char *request;
67 char *method;
68 char *user;
69 char *pass;
70
71 char *(*Header)(char *);
72 char *(*Query)(char *);
73 char *(*Post)(char *);
74 char *(*Cookie)(char *); // TODO
75 struct _MultiPart (*MultiPart)(char *);
76 // not necessary for web_server.h
77 char *QueryString;
78 char *CookieString;
79 char *PostData;
80 struct memrequest *mem;
81 struct _Header *HeaderList; // Not necessary for web_server.h
82 struct _Query *QueryList; // Not necessary for web_server.h
83 struct _Post *PostList; // Not necessary for web_server.h
84 struct _MultiPart *MultiPartList; // Not necessary for web_server.h
85 struct _Cookie *CookieList; // Not necessary for web_server.h
86};
87
88
89void __ILWS_init_clientinfo(struct ClientInfo *ClientInfo);
90void __ILWS_free_clientinfo(struct ClientInfo *ClientInfo);
91char *__ILWS_clientinfo_getquerystring(struct ClientInfo *ClientInfo);
92char *__ILWS_clientinfo_getpostdata(struct ClientInfo *ClientInfo);
93char *__ILWS_clientinfo_getcookiestring(struct ClientInfo *ClientInfo);
94char *__ILWS_clientinfo_getmethod(struct ClientInfo *ClientInfo);
95char *__ILWS_clientinfo_getreqname(struct ClientInfo *ClientInfo);
96char *__ILWS_Header(struct ClientInfo *ClientInfo, char *);
97char *__ILWS_Query(struct ClientInfo *ClientInfo, char *);
98char *__ILWS_Post(struct ClientInfo *ClientInfo, char *);
99struct _MultiPart __ILWS_MultiPart(struct ClientInfo *ClientInfo, char *);
100char *__ILWS_Cookie(struct ClientInfo *ClientInfo, char *);
101
102#endif
103