GATE
ftpclients.h File Reference

FTP client library. More...

#include "gate/net/gate_net_api.h"
#include "gate/strings.h"
#include "gate/streams.h"
#include "gate/files.h"

Classes

struct  gate_ftpclient_class
 

Macros

#define GATE_FTPCLIENT_DEFAULT_PORT   21
 
#define GATE_FTPCLIENT_FLAG_PASSIVE   1
 

Typedefs

typedef struct gate_ftpclient_class gate_ftpclient_t
 

Functions

GATE_NET_API gate_result_t gate_ftpclient_create (gate_ftpclient_t *client, gate_string_t const *server, gate_uint16_t port, gate_string_t const *user, gate_string_t const *password, gate_uint32_t flags)
 
GATE_NET_API gate_result_t gate_ftpclient_release (gate_ftpclient_t *client)
 
GATE_NET_API gate_result_t gate_ftpclient_list_files (gate_ftpclient_t *client, gate_string_t const *path, gate_file_list_callback_t cb, void *user_param)
 
GATE_NET_API gate_result_t gate_ftpclient_create_directory (gate_ftpclient_t *client, gate_string_t const *parent_dir, gate_string_t const *newname)
 
GATE_NET_API gate_result_t gate_ftpclient_delete_directory (gate_ftpclient_t *client, gate_string_t const *path)
 
GATE_NET_API gate_result_t gate_ftpclient_delete_file (gate_ftpclient_t *client, gate_string_t const *path)
 
GATE_NET_API gate_result_t gate_ftpclient_rename (gate_ftpclient_t *client, gate_string_t const *oldpath, gate_string_t const *newname)
 
GATE_NET_API gate_result_t gate_ftpclient_get_current_directory (gate_ftpclient_t *client, gate_string_t *path)
 
GATE_NET_API gate_result_t gate_ftpclient_set_current_directory (gate_ftpclient_t *client, gate_string_t const *path)
 
GATE_NET_API gate_result_t gate_ftpclient_open_stream (gate_ftpclient_t *client, gate_string_t const *path, gate_uint32_t stream_open_flags, gate_stream_t **ptr_stream)
 
GATE_NET_API gate_result_t gate_ftpclient_upload (gate_ftpclient_t *client, gate_stream_t *source_stream, gate_string_t const *dest_path)
 
GATE_NET_API gate_result_t gate_ftpclient_download (gate_ftpclient_t *client, gate_string_t const *source_path, gate_stream_t *dest_stream)
 
GATE_NET_API gate_result_t gate_ftpclient_upload_file (gate_ftpclient_t *client, gate_string_t const *source_file, gate_string_t const *dest_path)
 
GATE_NET_API gate_result_t gate_ftpclient_download_file (gate_ftpclient_t *client, gate_string_t const *source_path, gate_string_t const *dest_file)
 

Detailed Description

FTP client library.