diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-09-15 21:29:59 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-09-15 21:29:59 +0000 |
commit | 98602229796f8b1572d564449764b55d1fea35bc (patch) | |
tree | 20beffdc29b8ae210242b012bd16cbc796e726de /src/utils.h | |
parent | d3213f193c7b3823142b60f1d5f7911e6c970fc3 (diff) |
Added the send_http_message() function to handle sending messages back to
the client. It's used by httperr() and showstats().
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index 409def9..d0fa57e 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,4 +1,4 @@ -/* $Id: utils.h,v 1.8 2001-09-11 19:27:27 rjkaes Exp $ +/* $Id: utils.h,v 1.9 2001-09-15 21:29:59 rjkaes Exp $ * * See 'utils.h' for a detailed description. * @@ -21,11 +21,15 @@ #include "tinyproxy.h" +extern int send_http_message(struct conn_s* connptr, int http_code, + const char *error_title, const char *message); extern int httperr(struct conn_s *connptr, int err, const char *msg); extern void makedaemon(void); extern void pidfile_create(const char *path); +extern int create_file_safely(const char *filename); + #ifndef HAVE_STRLCAT extern size_t strlcat(char *dst, const char *src, size_t size); #endif /* HAVE_STRLCAT */ |