Added the send_http_message() function to handle sending messages back to

the client. It's used by httperr() and showstats().
This commit is contained in:
Robert James Kaes committed 2001-09-15 21:29:59 +00:00
1 parent d3213f193c
commit 9860222979
2 files changed
+48 -35

No files matched your search

+5 -1
View File
@@ -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 */