http.c File Reference

Include dependency graph for http.c:


Data Structures

struct  access_sys_t
 ************************************************************************** This is our own access_sys_t for zip files More...

Defines

#define PROXY_TEXT   N_("HTTP proxy")
#define PROXY_LONGTEXT
#define PROXY_PASS_TEXT   N_("HTTP proxy password")
#define PROXY_PASS_LONGTEXT
#define CACHING_TEXT   N_("Caching value in ms")
#define CACHING_LONGTEXT
#define AGENT_TEXT   N_("HTTP user agent")
#define AGENT_LONGTEXT
#define RECONNECT_TEXT   N_("Auto re-connect")
#define RECONNECT_LONGTEXT
#define CONTINUOUS_TEXT   N_("Continuous stream")
#define CONTINUOUS_LONGTEXT
#define FORWARD_COOKIES_TEXT   N_("Forward Cookies")
#define FORWARD_COOKIES_LONGTEXT   N_("Forward Cookies across http redirections.")
#define MAX_REDIRECT_TEXT   N_("Max number of redirection")
#define MAX_REDIRECT_LONGTEXT   N_("Limit the number of redirection to follow.")
#define USE_IE_PROXY_TEXT   N_("Use Internet Explorer entered HTTP proxy server")
#define USE_IE_PROXY_LONGTEXT

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static void Close (vlc_object_t *)
 Releases resources.
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static int OpenWithCookies (vlc_object_t *p_this, const char *psz_access, int i_nb_redirect, int i_max_redirect, vlc_array_t *cookies)
 Open the given url using the given cookies.
static ssize_t Read (access_t *, uint8_t *, size_t)
static ssize_t ReadCompressed (access_t *, uint8_t *, size_t)
static int Seek (access_t *, uint64_t)
static int Control (access_t *, int, va_list)
static int Connect (access_t *, uint64_t)
static int Request (access_t *p_access, uint64_t i_tell)
static void Disconnect (access_t *)
static char * cookie_get_content (const char *cookie)
static char * cookie_get_domain (const char *cookie)
static char * cookie_get_name (const char *cookie)
static void cookie_append (vlc_array_t *cookies, char *cookie)
static void AuthReply (access_t *p_acces, const char *psz_prefix, vlc_url_t *p_url, http_auth_t *p_auth)
static int AuthCheckReply (access_t *p_access, const char *psz_header, vlc_url_t *p_url, http_auth_t *p_auth)
static int ReadICYMeta (access_t *p_access)

Define Documentation

#define AGENT_LONGTEXT

Value:

N_("User agent that will be " \
    "used for the connection.")

#define AGENT_TEXT   N_("HTTP user agent")

#define CACHING_LONGTEXT

Value:

N_( \
    "Caching value for HTTP streams. This " \
    "value should be set in milliseconds." )

#define CACHING_TEXT   N_("Caching value in ms")

#define CONTINUOUS_LONGTEXT

Value:

N_("Read a file that is " \
    "being constantly updated (for example, a JPG file on a server). " \
    "You should not globally enable this option as it will break all other " \
    "types of HTTP streams." )

#define CONTINUOUS_TEXT   N_("Continuous stream")

#define FORWARD_COOKIES_LONGTEXT   N_("Forward Cookies across http redirections.")

#define FORWARD_COOKIES_TEXT   N_("Forward Cookies")

#define MAX_REDIRECT_LONGTEXT   N_("Limit the number of redirection to follow.")

#define MAX_REDIRECT_TEXT   N_("Max number of redirection")

#define PROXY_LONGTEXT

Value:

N_( \
    "HTTP proxy to be used It must be of the form " \
    "http://[user@]myproxy.mydomain:myport/ ; " \
    "if empty, the http_proxy environment variable will be tried." )

#define PROXY_PASS_LONGTEXT

Value:

N_( \
    "If your HTTP proxy requires a password, set it here." )

#define PROXY_PASS_TEXT   N_("HTTP proxy password")

#define PROXY_TEXT   N_("HTTP proxy")

#define RECONNECT_LONGTEXT

Value:

N_( \
    "Automatically try to reconnect to the stream in case of a sudden " \
    "disconnect." )

#define RECONNECT_TEXT   N_("Auto re-connect")

#define USE_IE_PROXY_LONGTEXT

Value:

N_("Use Internet Explorer entered HTTP proxy " \
    "server for all URL. Don't take into account bypasses settings and auto " \
    "configuration scripts.")

#define USE_IE_PROXY_TEXT   N_("Use Internet Explorer entered HTTP proxy server")


Function Documentation

static int AuthCheckReply ( access_t p_access,
const char *  psz_header,
vlc_url_t p_url,
http_auth_t p_auth 
) [static]

static void AuthReply ( access_t p_acces,
const char *  psz_prefix,
vlc_url_t p_url,
http_auth_t p_auth 
) [static]

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static int Connect ( access_t p_access,
uint64_t  i_tell 
) [static]

static int Control ( access_t p_access,
int  i_query,
va_list  args 
) [static]

static void cookie_append ( vlc_array_t cookies,
char *  cookie 
) [static]

static char * cookie_get_content ( const char *  cookie  )  [static]

References gen_builder::str, and strdup().

Referenced by cookie_get_name(), and Request().

static char * cookie_get_domain ( const char *  cookie  )  [static]

References gen_builder::str, and strdup().

Referenced by cookie_append(), and Request().

static char * cookie_get_name ( const char *  cookie  )  [static]

References cookie_get_content(), and gen_builder::str.

Referenced by cookie_append().

static void Disconnect ( access_t p_access  )  [static]

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

static int OpenWithCookies ( vlc_object_t p_this,
const char *  psz_access,
int  i_nb_redirect,
int  i_max_redirect,
vlc_array_t cookies 
) [static]

Open the given url using the given cookies.

Parameters:
p_this,: the vlc object : the acces to use (http, https, ...) (this value must be used instead of p_access->psz_access) : the number of redirection already done : limit to the number of redirection to follow : the available cookies
Returns:
vlc error codes

References _, asprintf(), access_sys_t::auth, access_sys_t::b_continuous, access_t::b_eof, access_sys_t::b_has_size, access_sys_t::b_icecast, access_sys_t::b_mms, access_sys_t::b_pace_control, access_sys_t::b_persist, access_sys_t::b_proxy, access_sys_t::b_reconnect, access_sys_t::b_seekable, access_sys_t::b_ssl, Connect(), access_sys_t::cookies, dialog_Login, Disconnect(), access_sys_t::fd, getenv(), http_auth_Init(), http_auth_Reset(), i, access_sys_t::i_code, access_sys_t::i_icy_meta, access_sys_t::i_icy_offset, http_auth_t::i_nonce, vlc_url_t::i_port, access_t::i_pos, access_sys_t::i_remaining, access_t::i_size, access_sys_t::i_version, access_t::info, msg_Dbg, msg_Err, msg_Info, msg_Warn, p_sys, access_sys_t::p_tls, access_sys_t::p_vs, access_t::pf_read, access_sys_t::proxy, access_sys_t::proxy_auth, access_t::psz_demux, vlc_url_t::psz_host, access_sys_t::psz_icy_genre, access_sys_t::psz_icy_name, access_sys_t::psz_icy_title, access_t::psz_location, access_sys_t::psz_location, access_sys_t::psz_mime, http_auth_t::psz_nonce, vlc_url_t::psz_password, vlc_url_t::psz_path, access_sys_t::psz_pragma, access_sys_t::psz_protocol, access_sys_t::psz_proxy_passbuf, http_auth_t::psz_realm, access_sys_t::psz_user_agent, vlc_url_t::psz_username, ReadCompressed(), STANDARD_READ_ACCESS_INIT, strcasecmp(), strdup(), strncasecmp(), access_sys_t::url, var_Create, var_CreateGetBool, var_CreateGetNonEmptyString, var_CreateGetString, vlc_array_count(), vlc_array_destroy(), vlc_array_item_at_index(), vlc_array_new(), VLC_EGENERIC, vlc_object_alive, VLC_SUCCESS, vlc_UrlClean(), vlc_UrlParse(), VLC_VAR_DOINHERIT, and VLC_VAR_INTEGER.

static ssize_t Read ( access_t p_access,
uint8_t *  p_buffer,
size_t  i_len 
) [static]

static ssize_t ReadCompressed ( access_t ,
uint8_t *  ,
size_t   
) [static]

static int ReadICYMeta ( access_t p_access  )  [static]

static int Request ( access_t p_access,
uint64_t  i_tell 
) [static]

static int Seek ( access_t p_access,
uint64_t  i_pos 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Generated on Tue May 25 08:05:07 2010 for VLC by  doxygen 1.5.6