FTEQW
Documentation of the FTE engine source tree.
iweb.h File Reference

Go to the source code of this file.

Classes

struct  IWeb_FileGen_t
 
struct  dl_download
 

Typedefs

typedef qboolean iwboolean
 

Functions

qboolean SV_AllowDownload (const char *name)
 
void VARGS IWebDPrintf (char *fmt,...) LIKEPRINTF(1)
 
void VARGS IWebWarnPrintf (char *fmt,...) LIKEPRINTF(1)
 
int NetadrToSockadr (netadr_t *a, struct sockaddr_qstorage *s)
 
int IWebAuthorize (const char *name, const char *password)
 
iwboolean IWebAllowUpLoad (const char *fname, const char *uname)
 
vfsfile_tIWebGenerateFile (const char *name, const char *content, int contentlength)
 
int IWebGetSafeListeningPort (void)
 
char * Q_strcpyline (char *out, const char *in, int maxlen)
 
iwboolean FTP_ServerRun (iwboolean ftpserverwanted, int port)
 
qboolean HTTP_ServerInit (int epfd, int port)
 
void IWebInit (void)
 
void IWebRun (void)
 
void IWebShutdown (void)
 
qboolean SV_POP3 (qboolean activewanted)
 
qboolean SV_SMTP (qboolean activewanted)
 
vfsfile_tVFSPIPE_Open (int refs, qboolean seekable)
 
vfsfile_tVFS_OpenPipeCallback (void(*callback)(void *ctx, vfsfile_t *file), void *ctx)
 
void HTTP_CL_Think (const char **fname, float *percent)
 
void HTTP_CL_Terminate (void)
 
unsigned int HTTP_CL_GetActiveDownloads (void)
 
struct dl_downloadHTTP_CL_Get (const char *url, const char *localfile, void(*NotifyFunction)(struct dl_download *dl))
 
struct dl_downloadHTTP_CL_Put (const char *url, const char *mime, const char *data, size_t datalen, void(*NotifyFunction)(struct dl_download *dl))
 
struct dl_downloadDL_Create (const char *url)
 
qboolean DL_CreateThread (struct dl_download *dl, vfsfile_t *file, void(*NotifyFunction)(struct dl_download *dl))
 
void DL_Close (struct dl_download *dl)
 
void DL_DeThread (void)
 

Typedef Documentation

◆ iwboolean

Function Documentation

◆ DL_Close()

void DL_Close ( struct dl_download dl)

◆ DL_Create()

struct dl_download * DL_Create ( const char *  url)

◆ DL_CreateThread()

qboolean DL_CreateThread ( struct dl_download dl,
vfsfile_t file,
void(*)(struct dl_download *dl)  NotifyFunction 
)

◆ DL_DeThread()

void DL_DeThread ( void  )

◆ FTP_ServerRun()

iwboolean FTP_ServerRun ( iwboolean  ftpserverwanted,
int  port 
)

◆ HTTP_CL_Get()

struct dl_download * HTTP_CL_Get ( const char *  url,
const char *  localfile,
void(*)(struct dl_download *dl)  NotifyFunction 
)

◆ HTTP_CL_GetActiveDownloads()

unsigned int HTTP_CL_GetActiveDownloads ( void  )

◆ HTTP_CL_Put()

struct dl_download * HTTP_CL_Put ( const char *  url,
const char *  mime,
const char *  data,
size_t  datalen,
void(*)(struct dl_download *dl)  NotifyFunction 
)

◆ HTTP_CL_Terminate()

void HTTP_CL_Terminate ( void  )

◆ HTTP_CL_Think()

void HTTP_CL_Think ( const char **  fname,
float *  percent 
)

◆ HTTP_ServerInit()

qboolean HTTP_ServerInit ( int  epfd,
int  port 
)

◆ IWebAllowUpLoad()

iwboolean IWebAllowUpLoad ( const char *  fname,
const char *  uname 
)

◆ IWebAuthorize()

int IWebAuthorize ( const char *  name,
const char *  password 
)

◆ IWebDPrintf()

void VARGS IWebDPrintf ( char *  fmt,
  ... 
)

◆ IWebGenerateFile()

vfsfile_t * IWebGenerateFile ( const char *  name,
const char *  content,
int  contentlength 
)

◆ IWebGetSafeListeningPort()

int IWebGetSafeListeningPort ( void  )

◆ IWebInit()

void IWebInit ( void  )

◆ IWebRun()

void IWebRun ( void  )

◆ IWebShutdown()

void IWebShutdown ( void  )

◆ IWebWarnPrintf()

void VARGS IWebWarnPrintf ( char *  fmt,
  ... 
)

◆ NetadrToSockadr()

int NetadrToSockadr ( netadr_t a,
struct sockaddr_qstorage s 
)

◆ Q_strcpyline()

char * Q_strcpyline ( char *  out,
const char *  in,
int  maxlen 
)

◆ SV_AllowDownload()

qboolean SV_AllowDownload ( const char *  name)

◆ SV_POP3()

qboolean SV_POP3 ( qboolean  activewanted)

◆ SV_SMTP()

qboolean SV_SMTP ( qboolean  activewanted)

◆ VFS_OpenPipeCallback()

vfsfile_t * VFS_OpenPipeCallback ( void(*)(void *ctx, vfsfile_t *file callback,
void ctx 
)

◆ VFSPIPE_Open()

vfsfile_t * VFSPIPE_Open ( int  refs,
qboolean  seekable 
)