FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
FTPContext Struct Reference

Data Fields

const AVClassclass
 
URLContextconn_control
 Control connection. More...
 
URLContextconn_data
 Data connection, NULL when not connected. More...
 
uint8_t control_buffer [CONTROL_BUFFER_SIZE]
 Control connection buffer. More...
 
uint8_tcontrol_buf_ptr
 
uint8_tcontrol_buf_end
 
int server_data_port
 Data connection port opened by server, -1 on error. More...
 
int server_control_port
 Control connection port, default is 21. More...
 
char * hostname
 Server address. More...
 
char * user
 Server user. More...
 
char * password
 Server user's password. More...
 
char * path
 Path to resource on server. More...
 
int64_t filesize
 Size of file on server, -1 on error. More...
 
int64_t position
 Current position, calculated. More...
 
int rw_timeout
 Network timeout. More...
 
const char * anonymous_password
 Password to be used for anonymous user. More...
 
int write_seekable
 Control seekability, 0 = disable, 1 = enable. More...
 
FTPState state
 State of data connection. More...
 

Detailed Description

Definition at line 38 of file ftp.c.

Field Documentation

const AVClass* FTPContext::class

Definition at line 39 of file ftp.c.

URLContext* FTPContext::conn_control

Control connection.

Definition at line 40 of file ftp.c.

Referenced by ftp_abort(), ftp_close_both_connections(), ftp_connect_control_connection(), ftp_getc(), and ftp_send_command().

URLContext* FTPContext::conn_data

Data connection, NULL when not connected.

Definition at line 41 of file ftp.c.

Referenced by ftp_close_data_connection(), ftp_connect_data_connection(), ftp_get_file_handle(), ftp_read(), ftp_shutdown(), and ftp_write().

uint8_t FTPContext::control_buffer[CONTROL_BUFFER_SIZE]

Control connection buffer.

Definition at line 42 of file ftp.c.

Referenced by ftp_getc().

uint8_t* FTPContext::control_buf_ptr

Definition at line 43 of file ftp.c.

Referenced by ftp_getc().

uint8_t * FTPContext::control_buf_end

Definition at line 43 of file ftp.c.

Referenced by ftp_getc().

int FTPContext::server_data_port

Data connection port opened by server, -1 on error.

Definition at line 44 of file ftp.c.

Referenced by ftp_connect_data_connection(), ftp_passive_mode(), and ftp_passive_mode_epsv().

int FTPContext::server_control_port

Control connection port, default is 21.

Definition at line 45 of file ftp.c.

Referenced by ftp_connect_control_connection(), and ftp_open().

char* FTPContext::hostname

Server address.

Definition at line 46 of file ftp.c.

Referenced by ftp_close(), ftp_connect_control_connection(), ftp_connect_data_connection(), and ftp_open().

char* FTPContext::user

Server user.

Definition at line 47 of file ftp.c.

Referenced by ftp_auth(), ftp_close(), and ftp_open().

char* FTPContext::password

Server user's password.

Definition at line 48 of file ftp.c.

Referenced by ftp_auth(), ftp_close(), and ftp_open().

char* FTPContext::path

Path to resource on server.

Definition at line 49 of file ftp.c.

Referenced by ftp_close(), ftp_current_dir(), ftp_file_size(), ftp_open(), ftp_retrieve(), and ftp_store().

int64_t FTPContext::filesize

Size of file on server, -1 on error.

Definition at line 50 of file ftp.c.

Referenced by ftp_file_size(), ftp_open(), ftp_read(), ftp_seek(), and ftp_write().

int64_t FTPContext::position

Current position, calculated.

Definition at line 51 of file ftp.c.

Referenced by ftp_close_data_connection(), ftp_connect_data_connection(), ftp_open(), ftp_read(), ftp_seek(), and ftp_write().

int FTPContext::rw_timeout

Network timeout.

Definition at line 52 of file ftp.c.

Referenced by ftp_connect_control_connection(), and ftp_connect_data_connection().

const char* FTPContext::anonymous_password

Password to be used for anonymous user.

An email should be used.

Definition at line 53 of file ftp.c.

Referenced by ftp_open().

int FTPContext::write_seekable

Control seekability, 0 = disable, 1 = enable.

Definition at line 54 of file ftp.c.

Referenced by ftp_open().

FTPState FTPContext::state

State of data connection.

Definition at line 55 of file ftp.c.

Referenced by ftp_close_data_connection(), ftp_connect_data_connection(), ftp_open(), ftp_read(), ftp_retrieve(), ftp_store(), and ftp_write().


The documentation for this struct was generated from the following file: