doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
ftp.c File Reference
#include "setup.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <curl/curl.h>
#include "urldata.h"
#include "sendf.h"
#include "if2ip.h"
#include "hostip.h"
#include "progress.h"
#include "transfer.h"
#include "escape.h"
#include "http.h"
#include "ftp.h"
#include "strtoofft.h"
#include "strequal.h"
#include "ssluse.h"
#include "connect.h"
#include <curl/mprintf.h>

Go to the source code of this file.

Macros

#define _MPRINTF_REPLACE   /* use our functions only */
 
#define FTPSENDF(x, y, z)   if((result = Curl_ftpsendf(x,y,z))) return result
 
#define lastline(line)
 

Functions

CURLcode Curl_GetFTPResponse (ssize_t *nreadp, struct connectdata *conn, int *ftpcode)
 
CURLcode Curl_ftp_connect (struct connectdata *conn)
 
CURLcode Curl_ftp_done (struct connectdata *conn)
 
CURLcode Curl_ftp_nextconnect (struct connectdata *conn)
 
CURLcode Curl_ftp (struct connectdata *conn)
 
CURLcode Curl_ftpsendf (struct connectdata *conn, const char *fmt,...)
 
CURLcode Curl_ftp_quit (struct connectdata *conn)
 
CURLcode Curl_ftp_disconnect (struct connectdata *conn)
 

Macro Definition Documentation

#define _MPRINTF_REPLACE   /* use our functions only */

Definition at line 99 of file ftp.c.

#define FTPSENDF (   x,
  y,
  z 
)    if((result = Curl_ftpsendf(x,y,z))) return result

Definition at line 115 of file ftp.c.

#define lastline (   line)
Value:
(isdigit((int)line[0]) && isdigit((int)line[1]) && \
isdigit((int)line[2]) && (' ' == line[3]))

Function Documentation

CURLcode Curl_ftp ( struct connectdata conn)

Definition at line 2306 of file ftp.c.

CURLcode Curl_ftp_connect ( struct connectdata conn)

Definition at line 441 of file ftp.c.

CURLcode Curl_ftp_disconnect ( struct connectdata conn)

Definition at line 2488 of file ftp.c.

CURLcode Curl_ftp_done ( struct connectdata conn)

Definition at line 720 of file ftp.c.

CURLcode Curl_ftp_nextconnect ( struct connectdata conn)

Definition at line 1688 of file ftp.c.

CURLcode Curl_ftp_quit ( struct connectdata conn)

Definition at line 2466 of file ftp.c.

CURLcode Curl_ftpsendf ( struct connectdata conn,
const char *  fmt,
  ... 
)

Definition at line 2416 of file ftp.c.

CURLcode Curl_GetFTPResponse ( ssize_t nreadp,
struct connectdata conn,
int ftpcode 
)

BANG

Definition at line 208 of file ftp.c.