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.
 
URLContextconn_data
 Data connection, NULL when not connected.
 
uint8_t control_buffer [CONTROL_BUFFER_SIZE]
 Control connection buffer.
 
uint8_tcontrol_buf_ptr
 
uint8_tcontrol_buf_end
 
int server_data_port
 Data connection port opened by server, -1 on error.
 
int server_control_port
 Control connection port, default is 21.
 
char hostname [512]
 Server address.
 
char credencials [CREDENTIALS_BUFFER_SIZE]
 Authentication data.
 
char path [MAX_URL_SIZE]
 Path to resource on server.
 
int64_t filesize
 Size of file on server, -1 on error.
 
int64_t position
 Current position, calculated.
 
int rw_timeout
 Network timeout.
 
const char * anonymous_password
 Password to be used for anonymous user.
 
int write_seekable
 Control seekability, 0 = disable, 1 = enable.
 
FTPState state
 State of data connection.
 

Detailed Description

Definition at line 39 of file ftp.c.

Field Documentation

const AVClass* FTPContext::class

Definition at line 40 of file ftp.c.

URLContext* FTPContext::conn_control

Control connection.

Definition at line 41 of file ftp.c.

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

URLContext* FTPContext::conn_data

Data connection, NULL when not connected.

Definition at line 42 of file ftp.c.

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

uint8_t FTPContext::control_buffer[CONTROL_BUFFER_SIZE]

Control connection buffer.

Definition at line 43 of file ftp.c.

Referenced by ftp_getc().

uint8_t* FTPContext::control_buf_ptr

Definition at line 44 of file ftp.c.

Referenced by ftp_getc().

uint8_t * FTPContext::control_buf_end

Definition at line 44 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 45 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 46 of file ftp.c.

Referenced by ftp_connect_control_connection(), and ftp_open().

char FTPContext::hostname[512]

Server address.

Definition at line 47 of file ftp.c.

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

char FTPContext::credencials[CREDENTIALS_BUFFER_SIZE]

Authentication data.

Definition at line 48 of file ftp.c.

Referenced by ftp_auth(), and ftp_open().

char FTPContext::path[MAX_URL_SIZE]

Path to resource on server.

Definition at line 49 of file ftp.c.

Referenced by 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_auth().

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: