18 #include "basictypes.h" 50 struct HTML_FILE_RECORD
53 const unsigned char *file_pointer;
62 extern const unsigned n_file_record;
63 extern const unsigned short huffman_table[];
64 extern const HTML_FILE_RECORD file_record[];
65 extern const char *MIME_table[];
66 extern const char *html_table[];
68 int SendEmailResponse(
int sock,
const char *name,
const char *attachment);
86 int SendHeaderResponse(
char const *name,
int fd);
87 int SendHeaderResponse(HTML_FILE_RECORD *fr,
int fd);
107 HTML_FILE_RECORD *GetRecordFromName(
char const *name);
108 void SendData(HTML_FILE_RECORD *fr,
int sock, PCSTR url =
NULL);
110 void WriteHtmlVariable(
int fd,
char c);
111 void WriteHtmlVariable(
int fd,
int i);
112 void WriteHtmlVariable(
int fd,
short i);
113 void WriteHtmlVariable(
int fd,
long i);
114 void WriteHtmlVariable(
int fd, uint8_t b);
115 void WriteHtmlVariable(
int fd, uint16_t w);
116 void WriteHtmlVariable(
int fd,
unsigned long dw);
117 void WriteHtmlVariable(
int fd,
const char *);
119 void WriteHtmlVariable(
int fd, MACADR ip);
125 IPADDR4_CLASS(IPADDR4 ip) { the_addr = ip; }
128 IPADDR4_CLASS IPCAST(IPADDR4 ip);
130 void WriteHtmlVariable(
int fd, IPADDR4_CLASS ipa);
int32_t SendFileFragment(char const *name, int32_t fd, PCSTR url=NULL)
Send a file fragment without a header.
Definition: htmldecomp.cpp:347
int SendFullResponse(char const *name, int fd)
Send a file with the proper HTTP header.
Definition: htmldecomp.cpp:306
#define NULL
Definition: nm_bsp.h:76