source: trunk/gsdl/src/w32server/wincgiutils.h@ 611

Last change on this file since 611 was 611, checked in by sjboddie, 25 years ago

initial commit of windows server code

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1#define http_ok 0
2#define http_error_url_invalid 11
3
4
5int parse_url(char *url,
6 char **protocol, char **machine, int *port, char **name);
7
8
9struct param_vals {char *name, *value; int vsize; char *dfault; };
10
11
12int Send_String(char *str, RequestInfoT *RInfo);
13int Send_String_N(char *str, int n, RequestInfoT *RInfo);
14void send_retrieve_error(int error_num, char *msg1, char *msg2, RequestInfoT *RequestInfo);
15int send_header(char *content, RequestInfoT *RequestInfo);
16void decode(char *st);
17void decode_template(int ntemp, param_vals tmplate[]);
18void parse_query_string(char *qstring, int ntemp, param_vals tmplate[]);
19int mg_sender(char *UDoc, int ULen, int DocNum, float Weight, void *RInfo);
20
21#define OUT_CONST_A(t) \
22{if (Send_String_N(t, sizeof(t), RInfo) < 0) return;}
23
24#define OUT_CONST_B(t) \
25{if (Send_String_N(t, sizeof(t), (RequestInfoT *)RInfo) < 0) return -1;}
26
27#define OUT_STRING_A(t) \
28{if (Send_String(t, RInfo) < 0) return;}
29
30#define OUT_STRING_B(t) \
31{if (Send_String(t, (RequestInfoT *)RInfo) < 0) return -1;}
32
33#define OUT_STRING_N_A(t,n) \
34{if (Send_String_N(t, n, RInfo) < 0) return;}
35
36#define OUT_STRING_N_B(t,n) \
37{if (Send_String_N(t, n, (RequestInfoT *)RInfo) < 0) return -1;}
Note: See TracBrowser for help on using the repository browser.