30#include <basictypes.h>
62struct HTML_FILE_RECORD
65 const unsigned char *file_pointer;
78extern const unsigned n_file_record;
79extern const unsigned short huffman_table[];
80extern const HTML_FILE_RECORD file_record[];
81extern const char *MIME_table[];
82extern const char *html_table[];
204void SendData(HTML_FILE_RECORD *fr,
int sock, PCSTR url = NULL);
206void WriteHtmlVariable(
int fd,
char c);
207void WriteHtmlVariable(
int fd,
int i);
208void WriteHtmlVariable(
int fd,
short i);
209void WriteHtmlVariable(
int fd,
long i);
210void WriteHtmlVariable(
int fd, uint8_t b);
211void WriteHtmlVariable(
int fd, uint16_t w);
212void WriteHtmlVariable(
int fd,
unsigned long dw);
213void WriteHtmlVariable(
int fd,
const char *);
215void WriteHtmlVariable(
int fd,
MACADR ip);
224 IPADDR_WCLASS(
IPADDR ip) { the_addr = ip; }
225 IPADDR_WCLASS(
IPADDR4 ip4) { the_addr = ip4; }
228IPADDR_WCLASS IPCAST(
IPADDR ip);
235 IPADDR_WCLASS(
IPADDR ip) { the_addr = ip; }
239IPADDR_WCLASS IPCAST(
IPADDR ip);
241void WriteHtmlVariable(
int fd, IPADDR_WCLASS ipa);
256struct CONFIG_RENDER_OBJ
276CONFIG_RENDER_OBJ
ConfigRenderFunc(
int mode,
const char *pobj,
int len = 20,
const char *extra = 0);
289CONFIG_RENDER_OBJ
ConfigRenderFunc(
int mode, config_leaf &cl,
int len = 20,
const char *extra = 0);
299void WriteHtmlVariable(
int fd, CONFIG_RENDER_OBJ co);
Used to store and manipulate IPv4 addresses in dual stack mode.
Definition nettypes.h:208
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode.
Definition ipv6_addr.h:41
Used to store and manipulate MAC addresses.
Definition nettypes.h:69
CONFIG_RENDER_OBJ ConfigRenderFunc(int mode, const char *pobj, int len=20, const char *extra=0)
Render a configuration object as HTML for the specified configuration object.
int SendHeaderResponse(char const *name, int fd)
Send a HTTP header response for the specified file type.
int SendEmailResponse(int sock, const char *name, const char *attachment)
Send an email with HTML formatting.
int32_t SendFileFragment(char const *name, int32_t fd, PCSTR url=NULL)
Send a file fragment without a header.
HTML_FILE_RECORD * GetRecordFromName(char const *name)
Returns a pointer to a HTML_FILE_RECORD for the specified file name.
int SendFullResponse(char const *name, int fd)
Send a file with the proper HTTP header, file specified by file name.
NetBurner IPADDR4 Class. See the IPADDR4 Class page for complete documentation.