
Data Structures | |
| struct | access_sys_t |
| ************************************************************************** This is our own access_sys_t for zip files More... | |
Defines | |
| #define | IPPORT_FTP 21u |
| #define | CACHING_TEXT N_("Caching value in ms") |
| #define | CACHING_LONGTEXT |
| #define | USER_TEXT N_("FTP user name") |
| #define | USER_LONGTEXT |
| #define | PASS_TEXT N_("FTP password") |
| #define | PASS_LONGTEXT |
| #define | ACCOUNT_TEXT N_("FTP account") |
| #define | ACCOUNT_LONGTEXT |
| #define | GET_OUT_SYS(p_this) ((access_sys_t *)(((sout_access_out_t *)(p_this))->p_sys)) |
Functions | |
| static int | InOpen (vlc_object_t *) |
| static void | InClose (vlc_object_t *) |
| static int | OutOpen (vlc_object_t *) |
| static void | OutClose (vlc_object_t *) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static ssize_t | Read (access_t *, uint8_t *, size_t) |
| static ssize_t | Write (sout_access_out_t *, block_t *) |
| static int | Seek (access_t *, uint64_t) |
| static int | OutSeek (sout_access_out_t *, off_t) |
| static int | Control (access_t *, int, va_list) |
| static int | ftp_SendCommand (vlc_object_t *, access_sys_t *, const char *,...) |
| static int | ftp_ReadCommand (vlc_object_t *, access_sys_t *, int *, char **) |
| static int | ftp_StartStream (vlc_object_t *, access_sys_t *, uint64_t) |
| static int | ftp_StopStream (vlc_object_t *, access_sys_t *) |
| static int | Login (vlc_object_t *p_access, access_sys_t *p_sys) |
| static int | Connect (vlc_object_t *p_access, access_sys_t *p_sys) |
| static int | parseURL (vlc_url_t *url, const char *path) |
| static void | Close (vlc_object_t *p_access, access_sys_t *p_sys) |
| static int | _Seek (vlc_object_t *p_access, access_sys_t *p_sys, uint64_t i_pos) |
| #define ACCOUNT_LONGTEXT |
Value:
N_("Account that will be " \ "used for the connection.")
| #define ACCOUNT_TEXT N_("FTP account") |
| #define CACHING_LONGTEXT |
Value:
N_( \ "Caching value for FTP streams. This " \ "value should be set in milliseconds." )
| #define CACHING_TEXT N_("Caching value in ms") |
| #define GET_OUT_SYS | ( | p_this | ) | ((access_sys_t *)(((sout_access_out_t *)(p_this))->p_sys)) |
Referenced by OutClose(), OutSeek(), and Write().
| #define IPPORT_FTP 21u |
Referenced by parseURL().
| #define PASS_LONGTEXT |
Value:
N_("Password that will be " \ "used for the connection.")
| #define PASS_TEXT N_("FTP password") |
| #define USER_LONGTEXT |
Value:
N_("User name that will " \ "be used for the connection.")
| #define USER_TEXT N_("FTP user name") |
| static int _Seek | ( | vlc_object_t * | p_access, | |
| access_sys_t * | p_sys, | |||
| uint64_t | i_pos | |||
| ) | [static] |
References ftp_StartStream(), ftp_StopStream(), msg_Dbg, VLC_EGENERIC, and VLC_SUCCESS.
| static void Close | ( | vlc_object_t * | p_access, | |
| access_sys_t * | p_sys | |||
| ) | [static] |
References access_sys_t::fd_cmd, ftp_ReadCommand(), ftp_SendCommand(), ftp_StopStream(), msg_Dbg, msg_Warn, net_Close, access_sys_t::url, and vlc_UrlClean().
| static int Connect | ( | vlc_object_t * | p_access, | |
| access_sys_t * | p_sys | |||
| ) | [static] |
References access_sys_t::fd_cmd, ftp_ReadCommand(), ftp_SendCommand(), Login(), msg_Err, msg_Info, net_Close, net_GetPeerAddress(), and access_sys_t::sz_epsv_ip.
Referenced by GetWindow(), InOpen(), OpenWithCookies(), OutOpen(), Read(), RollOverTcp(), and Seek().
| static int Control | ( | access_t * | p_access, | |
| int | i_query, | |||
| va_list | args | |||
| ) | [static] |
References ACCESS_CAN_CONTROL_PACE, ACCESS_CAN_FASTSEEK, ACCESS_CAN_PAUSE, ACCESS_CAN_SEEK, ACCESS_GET_CONTENT_TYPE, ACCESS_GET_META, ACCESS_GET_PTS_DELAY, ACCESS_GET_TITLE_INFO, ACCESS_SET_PAUSE_STATE, ACCESS_SET_PRIVATE_ID_STATE, ACCESS_SET_SEEKPOINT, ACCESS_SET_TITLE, access_t::i_pos, access_t::info, msg_Warn, Seek(), var_GetInteger, VLC_EGENERIC, and VLC_SUCCESS.
| static int ftp_ReadCommand | ( | vlc_object_t * | p_access, | |
| access_sys_t * | p_sys, | |||
| int * | pi_answer, | |||
| char ** | ppsz_answer | |||
| ) | [static] |
References access_sys_t::fd_cmd, msg_Dbg, msg_Err, and net_Gets.
Referenced by Close(), Connect(), ftp_StartStream(), ftp_StopStream(), InOpen(), and Login().
| static int ftp_SendCommand | ( | vlc_object_t * | p_access, | |
| access_sys_t * | p_sys, | |||
| const char * | psz_fmt, | |||
| ... | ||||
| ) | [static] |
References access_sys_t::fd_cmd, msg_Dbg, msg_Err, net_Printf, vasprintf(), VLC_EGENERIC, and VLC_SUCCESS.
Referenced by Close(), Connect(), ftp_StartStream(), ftp_StopStream(), InOpen(), and Login().
| static int ftp_StartStream | ( | vlc_object_t * | p_access, | |
| access_sys_t * | p_sys, | |||
| uint64_t | i_start | |||
| ) | [static] |
| static int ftp_StopStream | ( | vlc_object_t * | p_access, | |
| access_sys_t * | p_sys | |||
| ) | [static] |
References access_sys_t::fd_data, ftp_ReadCommand(), ftp_SendCommand(), msg_Warn, net_Close, VLC_EGENERIC, and VLC_SUCCESS.
| static void InClose | ( | vlc_object_t * | p_this | ) | [static] |
| static int InOpen | ( | vlc_object_t * | p_this | ) | [static] |
References atoll(), Connect(), access_sys_t::directory, access_sys_t::fd_cmd, access_sys_t::fd_data, ftp_ReadCommand(), ftp_SendCommand(), ftp_StartStream(), access_t::i_size, access_t::info, msg_Dbg, msg_Err, net_Close, access_sys_t::out, p_sys, parseURL(), access_t::psz_location, vlc_url_t::psz_path, STANDARD_READ_ACCESS_INIT, access_sys_t::url, var_Create, VLC_EGENERIC, VLC_SUCCESS, vlc_UrlClean(), VLC_VAR_DOINHERIT, and VLC_VAR_INTEGER.
| static int Login | ( | vlc_object_t * | p_access, | |
| access_sys_t * | p_sys | |||
| ) | [static] |
References _, dialog_Fatal, access_sys_t::fd_cmd, ftp_ReadCommand(), ftp_SendCommand(), vlc_url_t::i_port, msg_Dbg, msg_Err, net_ConnectTCP, vlc_url_t::psz_host, vlc_url_t::psz_password, vlc_url_t::psz_username, strdup(), access_sys_t::url, and var_CreateGetString.
Referenced by Connect().
| static void OutClose | ( | vlc_object_t * | p_this | ) | [static] |
References Close(), and GET_OUT_SYS.
| static int OutOpen | ( | vlc_object_t * | p_this | ) | [static] |
References Connect(), access_sys_t::fd_cmd, access_sys_t::fd_data, ftp_StartStream(), msg_Err, net_Close, access_sys_t::out, OutSeek(), sout_access_out_t::p_sys, p_sys, parseURL(), sout_access_out_t::pf_seek, sout_access_out_t::pf_write, vlc_url_t::psz_path, sout_access_out_t::psz_path, access_sys_t::url, VLC_EGENERIC, VLC_ENOMEM, VLC_SUCCESS, vlc_UrlClean(), and Write().
| static int OutSeek | ( | sout_access_out_t * | p_access, | |
| off_t | i_pos | |||
| ) | [static] |
| static int parseURL | ( | vlc_url_t * | url, | |
| const char * | path | |||
| ) | [static] |
References decode_URI(), EnsureUTF8(), vlc_url_t::i_port, IPPORT_FTP, vlc_url_t::psz_host, vlc_url_t::psz_path, VLC_EGENERIC, VLC_SUCCESS, and vlc_UrlParse().
| static ssize_t Read | ( | access_t * | p_access, | |
| uint8_t * | p_buffer, | |||
| size_t | i_len | |||
| ) | [static] |
| static int Seek | ( | access_t * | p_access, | |
| uint64_t | i_pos | |||
| ) | [static] |
References _Seek(), and VLC_SUCCESS.
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
| static ssize_t Write | ( | sout_access_out_t * | p_access, | |
| block_t * | p_buffer | |||
| ) | [static] |
References block_Release(), access_sys_t::fd_data, GET_OUT_SYS, block_t::i_buffer, net_Write, block_t::p_buffer, block_t::p_next, and p_sys.
1.5.6