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

ftp.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>
#include <glib.h>
#include "ftp.h"
#include "util.h"
#include "libuau.h"
#include "error.h"

Go to the source code of this file.

Functions

size_t callback (void *ptr, size_t size, size_t nmemb, void *data)
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)

Variables

AProgressCallback downloadCallback_global = NULL


Function Documentation

size_t callback void *  ptr,
size_t  size,
size_t  nmemb,
void *  data
[static]
 

Definition at line 144 of file ftp.c.

References AData::data, and AData::size.

Referenced by lutil_ftp_getURL(), and lutil_ftp_setCallbackFunc().

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().


Variable Documentation

AProgressCallback downloadCallback_global = NULL [static]
 

Definition at line 45 of file ftp.c.

Referenced by lutil_ftp_downloadToFile(), lutil_ftp_resetCallbackFunc(), and lutil_ftp_setCallbackFunc().


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