NetBurner 3.5.0
PDF Version
 
htmlfiles.h File Reference

NetBurner HTTP Web Server File Handling. More...

#include <basictypes.h>
#include <nettypes.h>
#include <ipv6/ipv6_addr.h>

Go to the source code of this file.

Functions

int SendEmailResponse (int sock, const char *name, const char *attachment)
 Send an email with HTML formatting.
 
int SendFullResponse (char const *name, int fd)
 Send a file with the proper HTTP header, file specified by file name.
 
int SendFullResponse (HTML_FILE_RECORD *fr, int fd, const char *pUrl)
 Send a file with the proper HTTP header, file specified by HTML_FILE_RECORD.
 
int SendHeaderResponse (char const *name, int fd)
 Send a HTTP header response for the specified file type.
 
int SendHeaderResponse (HTML_FILE_RECORD *fr, int fd)
 Send a HTTP header response for the specified HTML_FILE_RECORD type.
 
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.
 
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.
 
CONFIG_RENDER_OBJ ConfigRenderFunc (int mode, config_leaf &cl, int len=20, const char *extra=0)
 Render a configuration object as HTML for the specified configuration leaf object.
 
void WriteHtmlVariable (int fd, CONFIG_RENDER_OBJ co)
 Send a CONFIG_RENDER_OBJ to the client.
 

Detailed Description

NetBurner HTTP Web Server File Handling.