6#if defined(WEBSERVER) || defined(FTPSERVER)
10#define Con_TPrintf IWebPrintf
12#define IWebPrintf printf
13#define com_gamedir "."
16#define IWebMalloc(x) calloc(x, 1)
17#define IWebRealloc(x, y) realloc(x, y)
21#define IWebDPrintf Con_DPrintf
22#define IWebPrintf Con_Printf
24#define IWebMalloc Z_Malloc
25#define IWebRealloc BZF_Realloc
26#define IWebFree Z_Free
32#define IWEBACC_WRITE 2
156#define HTTP_DNSFAILURE 900
157#define HTTP_NORESPONSE 901
158#define HTTP_REFUSED 902
161#define HTTP_UNTRUSTED 905
cvar_t password
Definition: cl_main.c:148
void(QDECL *vgui_frame)(void)
void dNearCallback * callback
Definition: com_phys_ode.c:655
fs_relative
Definition: common.h:661
s
Definition: execloop.h:53
static EGLSurface EGLSurface EGLContext ctx
Definition: gl_videgl.c:47
GLuint GLcharARB * name
Definition: glquake.h:155
void HTTP_CL_Terminate(void)
Definition: httpclient.c:1502
qboolean SV_POP3(qboolean activewanted)
void HTTP_CL_Think(const char **fname, float *percent)
Definition: httpclient.c:1398
unsigned int HTTP_CL_GetActiveDownloads(void)
Definition: httpclient.c:1340
struct dl_download * DL_Create(const char *url)
Definition: httpclient.c:1257
void VARGS IWebDPrintf(char *fmt,...) LIKEPRINTF(1)
Definition: iwebiface.c:453
struct dl_download * HTTP_CL_Put(const char *url, const char *mime, const char *data, size_t datalen, void(*NotifyFunction)(struct dl_download *dl))
Definition: httpclient.c:1381
void IWebShutdown(void)
Definition: iwebiface.c:813
vfsfile_t * IWebGenerateFile(const char *name, const char *content, int contentlength)
Definition: webgen.c:443
iwboolean IWebAllowUpLoad(const char *fname, const char *uname)
Definition: iwebiface.c:914
void IWebInit(void)
Definition: iwebiface.c:763
qboolean HTTP_ServerInit(int epfd, int port)
Definition: httpserver.c:158
int NetadrToSockadr(netadr_t *a, struct sockaddr_qstorage *s)
Definition: net_wins.c:299
void DL_Close(struct dl_download *dl)
Definition: httpclient.c:1283
void IWebRun(void)
Definition: iwebiface.c:785
int IWebGetSafeListeningPort(void)
Definition: iwebiface.c:727
qboolean iwboolean
Definition: iweb.h:40
iwboolean FTP_ServerRun(iwboolean ftpserverwanted, int port)
Definition: ftpserver.c:1389
void VARGS IWebWarnPrintf(char *fmt,...) LIKEPRINTF(1)
Definition: iwebiface.c:751
qboolean SV_AllowDownload(const char *name)
Definition: iwebiface.c:51
qboolean SV_SMTP(qboolean activewanted)
char * Q_strcpyline(char *out, const char *in, int maxlen)
Definition: iwebiface.c:927
struct dl_download * HTTP_CL_Get(const char *url, const char *localfile, void(*NotifyFunction)(struct dl_download *dl))
Definition: httpclient.c:1351
qboolean DL_CreateThread(struct dl_download *dl, vfsfile_t *file, void(*NotifyFunction)(struct dl_download *dl))
Definition: httpclient.c:1218
void DL_DeThread(void)
Definition: httpclient.c:1322
int IWebAuthorize(const char *name, const char *password)
Definition: iwebiface.c:874
vfsfile_t * VFSPIPE_Open(int refs, qboolean seekable)
Definition: httpclient.c:1675
vfsfile_t * VFS_OpenPipeCallback(void(*callback)(void *ctx, vfsfile_t *file), void *ctx)
Definition: httpclient.c:1670
char fname[MAX_QPATH]
Definition: m_mp3.c:160
char ** data
Definition: p_script.c:63
const char * file
Definition: qcc_pr_lex.c:2518
uploadfmt_t fmt
Definition: r_2d.c:48
static spx_int16_t * in
Definition: snd_dma.c:488
static SpeexBits spx_int16_t * out
Definition: snd_dma.c:492
int references
Definition: iweb.h:44
char * data
Definition: iweb.h:45
int len
Definition: iweb.h:46
float gentime
Definition: iweb.h:43
size_t postlen
Definition: iweb.h:109
void * ctx
Definition: iweb.h:132
void(* notifycomplete)(struct dl_download *dl)
Definition: iweb.h:139
struct dl_download * next
Definition: iweb.h:137
qboolean isquery
Definition: iweb.h:93
unsigned int replycode
Definition: iweb.h:121
float user_float
Definition: iweb.h:89
size_t sizelimit
Definition: iweb.h:125
qboolean(* poll)(struct dl_download *)
Definition: iweb.h:134
unsigned int redircount
Definition: iweb.h:102
char * postdata
Definition: iweb.h:108
void(* abort)(struct dl_download *)
Definition: iweb.h:133
void * threadctx
Definition: iweb.h:130
size_t completed
Definition: iweb.h:123
enum dl_download::@334 status
enum fs_relative fsroot
Definition: iweb.h:104
char postmimetype[64]
Definition: iweb.h:107
size_t totalsize
Definition: iweb.h:122
void * user_ctx
Definition: iweb.h:90
char * url
Definition: iweb.h:100
char redir[MAX_OSPATH]
Definition: iweb.h:101
qboolean(* notifystarted)(struct dl_download *dl, char *mimetype)
Definition: iweb.h:138
qboolean threadenable
Definition: iweb.h:129
int user_sequence
Definition: iweb.h:91
@ DL_QUERY
Definition: iweb.h:117
@ DL_PENDING
Definition: iweb.h:114
@ DL_FINISHED
Definition: iweb.h:119
@ DL_FAILED
Definition: iweb.h:115
@ DL_ACTIVE
Definition: iweb.h:118
@ DL_RESOLVING
Definition: iweb.h:116
qdownload_t qdownload
Definition: iweb.h:96
char localname[MAX_OSPATH]
Definition: iweb.h:103
struct vfsfile_s * file
Definition: iweb.h:105
unsigned int user_num
Definition: iweb.h:88
netadr_t a
Definition: sv_master.c:141
unsigned int datalen
Definition: sv_user.c:2880
void * vfsfile_t
Definition: sys_plugfte.h:2