FFmpeg  4.0
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...
 
FTPListingMethod listing_method
 Called listing method. More...
 
char * features
 List of server's features represented as raw response. More...
 
char * dir_buffer
 
size_t dir_buffer_size
 
size_t dir_buffer_offset
 
int utf8
 

Detailed Description

Definition at line 48 of file ftp.c.

Field Documentation

◆ class

const AVClass* FTPContext::class

Definition at line 49 of file ftp.c.

◆ conn_control

URLContext* FTPContext::conn_control

◆ conn_data

URLContext* FTPContext::conn_data

Data connection, NULL when not connected.

Definition at line 51 of file ftp.c.

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

◆ control_buffer

uint8_t FTPContext::control_buffer[CONTROL_BUFFER_SIZE]

Control connection buffer.

Definition at line 52 of file ftp.c.

Referenced by ftp_getc().

◆ control_buf_ptr

uint8_t* FTPContext::control_buf_ptr

Definition at line 53 of file ftp.c.

Referenced by ftp_getc().

◆ control_buf_end

uint8_t * FTPContext::control_buf_end

Definition at line 53 of file ftp.c.

Referenced by ftp_getc().

◆ server_data_port

int FTPContext::server_data_port

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

Definition at line 54 of file ftp.c.

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

◆ server_control_port

int FTPContext::server_control_port

Control connection port, default is 21.

Definition at line 55 of file ftp.c.

Referenced by ftp_connect(), and ftp_connect_control_connection().

◆ hostname

char* FTPContext::hostname

Server address.

Definition at line 56 of file ftp.c.

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

◆ user

char* FTPContext::user

Server user.

Definition at line 57 of file ftp.c.

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

◆ password

char* FTPContext::password

Server user's password.

Definition at line 58 of file ftp.c.

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

◆ path

char* FTPContext::path

Path to resource on server.

Definition at line 59 of file ftp.c.

Referenced by ftp_close(), ftp_connect(), ftp_current_dir(), ftp_delete(), ftp_file_size(), ftp_move(), ftp_retrieve(), ftp_set_dir(), and ftp_store().

◆ filesize

int64_t FTPContext::filesize

Size of file on server, -1 on error.

Definition at line 60 of file ftp.c.

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

◆ position

int64_t FTPContext::position

Current position, calculated.

Definition at line 61 of file ftp.c.

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

◆ rw_timeout

int FTPContext::rw_timeout

Network timeout.

Definition at line 62 of file ftp.c.

Referenced by ftp_connect_control_connection(), and ftp_connect_data_connection().

◆ anonymous_password

const char* FTPContext::anonymous_password

Password to be used for anonymous user.

An email should be used.

Definition at line 63 of file ftp.c.

Referenced by ftp_connect().

◆ write_seekable

int FTPContext::write_seekable

Control seekability, 0 = disable, 1 = enable.

Definition at line 64 of file ftp.c.

Referenced by ftp_open().

◆ state

FTPState FTPContext::state

◆ listing_method

FTPListingMethod FTPContext::listing_method

Called listing method.

Definition at line 66 of file ftp.c.

Referenced by ftp_connect(), ftp_list_mlsd(), ftp_list_nlst(), and ftp_parse_entry().

◆ features

char* FTPContext::features

List of server's features represented as raw response.

Definition at line 67 of file ftp.c.

Referenced by ftp_close(), ftp_connect(), ftp_features(), and ftp_has_feature().

◆ dir_buffer

char* FTPContext::dir_buffer

Definition at line 68 of file ftp.c.

Referenced by ftp_close_dir(), ftp_open_dir(), and ftp_read_dir().

◆ dir_buffer_size

size_t FTPContext::dir_buffer_size

Definition at line 69 of file ftp.c.

Referenced by ftp_read_dir().

◆ dir_buffer_offset

size_t FTPContext::dir_buffer_offset

Definition at line 70 of file ftp.c.

Referenced by ftp_read_dir().

◆ utf8

int FTPContext::utf8

Definition at line 71 of file ftp.c.

Referenced by ftp_features(), and ftp_read_dir().


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