Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

webs.h File Reference

#include "ej.h"

Defines

#define _h_WEBS   1
#define WEBS_NAME   T("GoAhead-Webs")
#define WEBS_VERSION   T("2.1.8")
#define WEBS_HEADER_BUFINC   512
#define WEBS_ASP_BUFINC   512
#define WEBS_MAX_PASS   32
#define WEBS_BUFSIZE   1000
#define WEBS_MAX_HEADER   (5 * 1024)
#define WEBS_MAX_URL   4096
#define WEBS_SOCKET_BUFSIZ   256
#define WEBS_HTTP_PORT   T("httpPort")
#define CGI_BIN   T("cgi-bin")
#define WEBS_LOCAL_PAGE   0x1
#define WEBS_KEEP_ALIVE   0x2
#define WEBS_DONT_USE_CACHE   0x4
#define WEBS_COOKIE   0x8
#define WEBS_IF_MODIFIED   0x10
#define WEBS_POST_REQUEST   0x20
#define WEBS_LOCAL_REQUEST   0x40
#define WEBS_HOME_PAGE   0x80
#define WEBS_ASP   0x100
#define WEBS_HEAD_REQUEST   0x200
#define WEBS_CLEN   0x400
#define WEBS_FORM   0x800
#define WEBS_REQUEST_DONE   0x1000
#define WEBS_POST_DATA   0x2000
#define WEBS_CGI_REQUEST   0x4000
#define WEBS_SECURE   0x8000
#define WEBS_AUTH_BASIC   0x10000
#define WEBS_AUTH_DIGEST   0x20000
#define WEBS_HEADER_DONE   0x40000
#define WEBS_HANDLER_FIRST   0x1
#define WEBS_HANDLER_LAST   0x2

Typedefs

typedef websRec websRec
typedef websRecwebs_t
typedef websRec websType

Functions

int websAccept (int sid, char *ipaddr, int port, int listenSid)
int websAspDefine (char_t *name, int(*fn)(int ejid, webs_t wp, int argc, char_t **argv))
int websAspRequest (webs_t wp, char_t *lpath)
void websCloseListen ()
int websDecode64 (char_t *outbuf, char_t *string, int buflen)
void websDecodeUrl (char_t *token, char_t *decoded, int len)
void websDone (webs_t wp, int code)
void websEncode64 (char_t *outbuf, char_t *string, int buflen)
void websError (webs_t wp, int code, char_t *msg,...)
char_twebsErrorMsg (int code)
void websFooter (webs_t wp)
int websFormDefine (char_t *name, void(*fn)(webs_t wp, char_t *path, char_t *query))
char_twebsGetDefaultDir ()
char_twebsGetDefaultPage ()
char_twebsGetHostUrl ()
char_twebsGetIpaddrUrl ()
char_twebsGetPassword ()
int websGetPort ()
char_twebsGetPublishDir (char_t *path, char_t **urlPrefix)
char_twebsGetRealm ()
int websGetRequestBytes (webs_t wp)
char_twebsGetRequestDir (webs_t wp)
int websGetRequestFlags (webs_t wp)
char_twebsGetRequestIpaddr (webs_t wp)
char_twebsGetRequestLpath (webs_t wp)
char_twebsGetRequestPath (webs_t wp)
char_twebsGetRequestPassword (webs_t wp)
char_twebsGetRequestType (webs_t wp)
int websGetRequestWritten (webs_t wp)
char_twebsGetVar (webs_t wp, char_t *var, char_t *def)
int websCompareVar (webs_t wp, char_t *var, char_t *value)
void websHeader (webs_t wp)
int websOpenListen (int port, int retries)
int websPageOpen (webs_t wp, char_t *lpath, char_t *path, int mode, int perm)
void websPageClose (webs_t wp)
int websPublish (char_t *urlPrefix, char_t *path)
void websRedirect (webs_t wp, char_t *url)
void websSecurityDelete ()
int websSecurityHandler (webs_t wp, char_t *urlPrefix, char_t *webDir, int arg, char_t *url, char_t *path, char_t *query)
void websSetDefaultDir (char_t *dir)
void websSetDefaultPage (char_t *page)
void websSetEnv (webs_t wp)
void websSetHost (char_t *host)
void websSetIpaddr (char_t *ipaddr)
void websSetPassword (char_t *password)
void websSetRealm (char_t *realmName)
void websSetRequestBytes (webs_t wp, int bytes)
void websSetRequestFlags (webs_t wp, int flags)
void websSetRequestLpath (webs_t wp, char_t *lpath)
void websSetRequestPath (webs_t wp, char_t *dir, char_t *path)
char_twebsGetRequestUserName (webs_t wp)
void websSetRequestWritten (webs_t wp, int written)
void websSetVar (webs_t wp, char_t *var, char_t *value)
int websTestVar (webs_t wp, char_t *var)
void websTimeoutCancel (webs_t wp)
int websUrlHandlerDefine (char_t *urlPrefix, char_t *webDir, int arg, int(*fn)(webs_t wp, char_t *urlPrefix, char_t *webDir, int arg, char_t *url, char_t *path, char_t *query), int flags)
int websUrlHandlerDelete (int(*fn)(webs_t wp, char_t *urlPrefix, char_t *webDir, int arg, char_t *url, char_t *path, char_t *query))
int websUrlHandlerRequest (webs_t wp)
int websUrlParse (char_t *url, char_t **buf, char_t **host, char_t **path, char_t **port, char_t **query, char_t **proto, char_t **tag, char_t **ext)
char_twebsUrlType (char_t *webs, char_t *buf, int charCnt)
int websWrite (webs_t wp, char_t *fmt,...)
int websWriteBlock (webs_t wp, char_t *buf, int nChars)
int websWriteDataNonBlock (webs_t wp, char *buf, int nChars)
int websValid (webs_t wp)
int websValidateUrl (webs_t wp, char_t *path)
void websSetTimeMark (webs_t wp)
int websAlloc (int sid)
void websFree (webs_t wp)
void websTimeout (void *arg, int id)
void websReadEvent (webs_t wp)

Define Documentation

#define _h_WEBS   1
 

#define CGI_BIN   T("cgi-bin")
 

#define WEBS_ASP   0x100
 

#define WEBS_ASP_BUFINC   512
 

#define WEBS_AUTH_BASIC   0x10000
 

#define WEBS_AUTH_DIGEST   0x20000
 

#define WEBS_BUFSIZE   1000
 

#define WEBS_CGI_REQUEST   0x4000
 

#define WEBS_CLEN   0x400
 

#define WEBS_COOKIE   0x8
 

#define WEBS_DONT_USE_CACHE   0x4
 

#define WEBS_FORM   0x800
 

#define WEBS_HANDLER_FIRST   0x1
 

#define WEBS_HANDLER_LAST   0x2
 

#define WEBS_HEAD_REQUEST   0x200
 

#define WEBS_HEADER_BUFINC   512
 

#define WEBS_HEADER_DONE   0x40000
 

#define WEBS_HOME_PAGE   0x80
 

#define WEBS_HTTP_PORT   T("httpPort")
 

#define WEBS_IF_MODIFIED   0x10
 

#define WEBS_KEEP_ALIVE   0x2
 

#define WEBS_LOCAL_PAGE   0x1
 

#define WEBS_LOCAL_REQUEST   0x40
 

#define WEBS_MAX_HEADER   (5 * 1024)
 

#define WEBS_MAX_PASS   32
 

#define WEBS_MAX_URL   4096
 

#define WEBS_NAME   T("GoAhead-Webs")
 

#define WEBS_POST_DATA   0x2000
 

#define WEBS_POST_REQUEST   0x20
 

#define WEBS_REQUEST_DONE   0x1000
 

#define WEBS_SECURE   0x8000
 

#define WEBS_SOCKET_BUFSIZ   256
 

#define WEBS_VERSION   T("2.1.8")
 


Typedef Documentation

typedef websRec* webs_t
 

typedef struct websRec websRec
 

typedef websRec websType
 


Function Documentation

int websAccept int  sid,
char *  ipaddr,
int  port,
int  listenSid
 

int websAlloc int  sid  ) 
 

int websAspDefine char_t name,
int(*)(int ejid, webs_t wp, int argc, char_t **argv)  fn
 

int websAspRequest webs_t  wp,
char_t lpath
 

void websCloseListen  ) 
 

int websCompareVar webs_t  wp,
char_t var,
char_t value
 

int websDecode64 char_t outbuf,
char_t string,
int  buflen
 

void websDecodeUrl char_t token,
char_t decoded,
int  len
 

void websDone webs_t  wp,
int  code
 

void websEncode64 char_t outbuf,
char_t string,
int  buflen
 

void websError webs_t  wp,
int  code,
char_t msg,
  ...
 

char_t* websErrorMsg int  code  ) 
 

void websFooter webs_t  wp  ) 
 

int websFormDefine char_t name,
void(*)(webs_t wp, char_t *path, char_t *query)  fn
 

void websFree webs_t  wp  ) 
 

char_t* websGetDefaultDir  ) 
 

char_t* websGetDefaultPage  ) 
 

char_t* websGetHostUrl  ) 
 

char_t* websGetIpaddrUrl  ) 
 

char_t* websGetPassword  ) 
 

int websGetPort  ) 
 

char_t* websGetPublishDir char_t path,
char_t **  urlPrefix
 

char_t* websGetRealm  ) 
 

int websGetRequestBytes webs_t  wp  ) 
 

char_t* websGetRequestDir webs_t  wp  ) 
 

int websGetRequestFlags webs_t  wp  ) 
 

char_t* websGetRequestIpaddr webs_t  wp  ) 
 

char_t* websGetRequestLpath webs_t  wp  ) 
 

char_t* websGetRequestPassword webs_t  wp  ) 
 

char_t* websGetRequestPath webs_t  wp  ) 
 

char_t* websGetRequestType webs_t  wp  ) 
 

char_t* websGetRequestUserName webs_t  wp  ) 
 

int websGetRequestWritten webs_t  wp  ) 
 

char_t* websGetVar webs_t  wp,
char_t var,
char_t def
 

void websHeader webs_t  wp  ) 
 

int websOpenListen int  port,
int  retries
 

void websPageClose webs_t  wp  ) 
 

int websPageOpen webs_t  wp,
char_t lpath,
char_t path,
int  mode,
int  perm
 

int websPublish char_t urlPrefix,
char_t path
 

void websReadEvent webs_t  wp  ) 
 

void websRedirect webs_t  wp,
char_t url
 

void websSecurityDelete  ) 
 

int websSecurityHandler webs_t  wp,
char_t urlPrefix,
char_t webDir,
int  arg,
char_t url,
char_t path,
char_t query
 

void websSetDefaultDir char_t dir  ) 
 

void websSetDefaultPage char_t page  ) 
 

void websSetEnv webs_t  wp  ) 
 

void websSetHost char_t host  ) 
 

void websSetIpaddr char_t ipaddr  ) 
 

void websSetPassword char_t password  ) 
 

void websSetRealm char_t realmName  ) 
 

void websSetRequestBytes webs_t  wp,
int  bytes
 

void websSetRequestFlags webs_t  wp,
int  flags
 

void websSetRequestLpath webs_t  wp,
char_t lpath
 

void websSetRequestPath webs_t  wp,
char_t dir,
char_t path
 

void websSetRequestWritten webs_t  wp,
int  written
 

void websSetTimeMark webs_t  wp  ) 
 

void websSetVar webs_t  wp,
char_t var,
char_t value
 

int websTestVar webs_t  wp,
char_t var
 

void websTimeout void *  arg,
int  id
 

void websTimeoutCancel webs_t  wp  ) 
 

int websUrlHandlerDefine char_t urlPrefix,
char_t webDir,
int  arg,
int(*)(webs_t wp, char_t *urlPrefix, char_t *webDir, int arg, char_t *url, char_t *path, char_t *query)  fn,
int  flags
 

int websUrlHandlerDelete int(*)(webs_t wp, char_t *urlPrefix, char_t *webDir, int arg, char_t *url, char_t *path, char_t *query)  fn  ) 
 

int websUrlHandlerRequest webs_t  wp  ) 
 

int websUrlParse char_t url,
char_t **  buf,
char_t **  host,
char_t **  path,
char_t **  port,
char_t **  query,
char_t **  proto,
char_t **  tag,
char_t **  ext
 

char_t* websUrlType char_t webs,
char_t buf,
int  charCnt
 

int websValid webs_t  wp  ) 
 

int websValidateUrl webs_t  wp,
char_t path
 

int websWrite webs_t  wp,
char_t fmt,
  ...
 

int websWriteBlock webs_t  wp,
char_t buf,
int  nChars
 

int websWriteDataNonBlock webs_t  wp,
char *  buf,
int  nChars
 


Generated on Thu Mar 2 16:11:29 2006 for VDK Blacksheep by  doxygen 1.4.1