Main Page | Data Structures | File List | Data Fields | Globals

ftp.h File Reference

URL retrieving subroutines. More...

#include <glib.h>
#include "libuau.h"

Go to the source code of this file.

Defines

#define FTP_UPDATE_FILE   "updates"

Functions

gboolean lutil_ftp_downloadToFile (const char *url, const char *downloadTo)
GString * lutil_ftp_getURL (const char *url)
void lutil_ftp_setCallbackFunc (AProgressCallback callback)
void lutil_ftp_resetCallbackFunc (void)


Detailed Description

URL retrieving subroutines.

Standard interface for downloading files either to the local filesystem or to memory. Note that despite the name of the file "ftp.h", -any- protocol supported by libcurl is supported here.

Definition in file ftp.h.


Define Documentation

#define FTP_UPDATE_FILE   "updates"
 

Definition at line 32 of file ftp.h.


Function Documentation

gboolean lutil_ftp_downloadToFile const char *  url,
const char *  downloadTo
 

Definition at line 50 of file ftp.c.

References DBUGOUT, downloadCallback_global, and ERROR.

Referenced by luau_net_downloadUpdate().

GString* lutil_ftp_getURL const char *  url  ) 
 

Definition at line 91 of file ftp.c.

References callback(), AData::data, DBUGOUT, ERROR, and AData::size.

Referenced by luau_net_queryServer().

void lutil_ftp_resetCallbackFunc void   ) 
 

Definition at line 137 of file ftp.c.

References downloadCallback_global.

Referenced by luau_resetProgressCallback().

void lutil_ftp_setCallbackFunc AProgressCallback  callback  ) 
 

Definition at line 132 of file ftp.c.

References callback(), and downloadCallback_global.

Referenced by luau_registerProgressCallback().


Generated on Mon Apr 12 22:17:11 2004 for luau by doxygen 1.3.2