5748185 [rkeene@sledge /home/rkeene/devel/old/rutil_tcpcgi-0.1.17]$ cat -n tcpcgi.h
 1 /*
 2     tcpcgi.h -- Common definitions for rutil_tcpcgi.
 3     Copyright (C) 2003  Roy Keene
 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 
19     email: tcpcgi@rkeene.org
20 
21 */
22 #ifndef TCPCGI_H
23 #define TCPCGI_H
24 #include <stdlib.h>
25 #include <unistd.h>
26 #include <stdio.h>
27 
28 #ifdef EBUG
29 #define DEBUG EBUG
30 #endif
31 
32 #ifndef TCPCGI_DAEMON_PORT
33 #define TCPCGI_DAEMON_PORT 9114
34 #endif
35 
36 #ifndef TCPCGI_CLIENT_PORT
37 #define TCPCGI_CLIENT_PORT 9111
38 #endif
39 
40 #ifndef TCPCGI_CLIENT_POLLTIME_MIN
41 #define TCPCGI_CLIENT_POLLTIME_MIN 200
42 #endif
43 
44 #ifndef TCPCGI_CLIENT_POLLTIME_MAX
45 #define TCPCGI_CLIENT_POLLTIME_MAX 60000
46 #endif
47 
48 #ifndef TCPCGI_DAEMON_MAXERR
49 #define TCPCGI_DAEMON_MAXERR 10
50 #endif
51 
52 #ifdef DEBUG
53 #define PRINT_LINE fprintf(stderr, "%s:%i:%s(): ", __FILE__, __LINE__, __func__); 
54 #define PRINTERR(x...) { PRINT_LINE; fprintf(stderr, x); fprintf(stderr, "\n"); fflush(stderr); }
55 #define PERROR(x) { PRINT_LINE; perror(x); fflush(stderr); }
56 #define DPERROR(x) PERROR(x)
57 #define CHECKPOINT PRINTERR("*** CHECKPOINT REACHED ***")
58 #else
59 #define PRINT_LINE /**/
60 #define PRINTERR(x...) /**/
61 #define PERROR(x) perror(x);
62 #define DPERROR(x) /**/
63 #define CHECKPOINT /**/
64 #endif
65 
66 #define TCPCGI_VERSION "0.1.17"
67 
68 #endif
5748186 [rkeene@sledge /home/rkeene/devel/old/rutil_tcpcgi-0.1.17]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2004-01-01 16:22:42