| 1 | /* |
|---|
| 2 | ** Copyright (c) 2002 Hughes Technologies Pty Ltd. All rights |
|---|
| 3 | ** reserved. |
|---|
| 4 | ** |
|---|
| 5 | ** Terms under which this software may be used or copied are |
|---|
| 6 | ** provided in the specific license associated with this product. |
|---|
| 7 | ** |
|---|
| 8 | ** Hughes Technologies disclaims all warranties with regard to this |
|---|
| 9 | ** software, including all implied warranties of merchantability and |
|---|
| 10 | ** fitness, in no event shall Hughes Technologies be liable for any |
|---|
| 11 | ** special, indirect or consequential damages or any damages whatsoever |
|---|
| 12 | ** resulting from loss of use, data or profits, whether in an action of |
|---|
| 13 | ** contract, negligence or other tortious action, arising out of or in |
|---|
| 14 | ** connection with the use or performance of this software. |
|---|
| 15 | ** |
|---|
| 16 | ** |
|---|
| 17 | ** Original Id: httpd_priv.h,v 1.5 2002/11/25 02:15:51 bambi Exp |
|---|
| 18 | ** |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | /* $Header$ */ |
|---|
| 22 | /** @internal |
|---|
| 23 | @file httpd_priv.h |
|---|
| 24 | @brief HTTP Server Non exported declaration |
|---|
| 25 | @author Originally by Hughes Technologies Pty Ltd. |
|---|
| 26 | @author Copyright (C) 2004 Alexandre Carmel-Veilleux <acv@acv.ca> |
|---|
| 27 | */ |
|---|
| 28 | |
|---|
| 29 | /* |
|---|
| 30 | ** libhttpd Private Header File |
|---|
| 31 | */ |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | /*********************************************************************** |
|---|
| 35 | ** Standard header preamble. Ensure singular inclusion, setup for |
|---|
| 36 | ** function prototypes and c++ inclusion |
|---|
| 37 | */ |
|---|
| 38 | |
|---|
| 39 | #ifndef LIB_HTTPD_PRIV_H |
|---|
| 40 | |
|---|
| 41 | #define LIB_HTTPD_H_PRIV 1 |
|---|
| 42 | |
|---|
| 43 | #define LEVEL_NOTICE "notice" |
|---|
| 44 | #define LEVEL_ERROR "error" |
|---|
| 45 | |
|---|
| 46 | char * _httpd_unescape(char*); |
|---|
| 47 | char *_httpd_escape(char*); |
|---|
| 48 | char _httpd_from_hex (char); |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | void _httpd_catFile(httpd*, char*); |
|---|
| 52 | void _httpd_send403(httpd*); |
|---|
| 53 | void _httpd_send404(httpd*); |
|---|
| 54 | void _httpd_sendText(httpd*, char*); |
|---|
| 55 | void _httpd_sendFile(httpd*, char*); |
|---|
| 56 | void _httpd_sendStatic(httpd*, char*); |
|---|
| 57 | void _httpd_sendHeaders(httpd*, int, int); |
|---|
| 58 | void _httpd_sanitiseUrl(char*); |
|---|
| 59 | void _httpd_freeVariables(httpVar*); |
|---|
| 60 | void _httpd_formatTimeString(httpd*, char*, int); |
|---|
| 61 | void _httpd_storeData(httpd*, char*); |
|---|
| 62 | void _httpd_writeAccessLog(httpd*); |
|---|
| 63 | void _httpd_writeErrorLog(httpd*, char*, char*); |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | int _httpd_net_read(int, char*, int); |
|---|
| 67 | int _httpd_net_write(int, char*, int); |
|---|
| 68 | int _httpd_readBuf(httpd*, char*, int); |
|---|
| 69 | int _httpd_readChar(httpd*, char*); |
|---|
| 70 | int _httpd_readLine(httpd*, char*, int); |
|---|
| 71 | int _httpd_checkLastModified(httpd*, int); |
|---|
| 72 | int _httpd_sendDirectoryEntry(httpd*, httpContent*, char*); |
|---|
| 73 | |
|---|
| 74 | httpContent *_httpd_findContentEntry(httpd*, httpDir*, char*); |
|---|
| 75 | httpDir *_httpd_findContentDir(httpd*, char*, int); |
|---|
| 76 | |
|---|
| 77 | #endif /* LIB_HTTPD_PRIV_H */ |
|---|