|
VLC
2.1.0-git
|

Data Structures | |
| struct | httpd_host_t |
| struct | httpd_url_t |
| struct | httpd_client_t |
| struct | http_status_info |
| struct | httpd_file_t |
| struct | httpd_handler_t |
| struct | httpd_redirect_t |
| struct | httpd_stream_t |
| struct | httpd |
Macros | |
| #define | HTTPD_CL_BUFSIZE 10000 |
Variables | |
| static const http_status_info | http_reason [] |
| static const char | psz_fallback_reason [5][16] |
| static struct httpd | httpd |
| struct { | |
| const char name [16] | |
| int i_type | |
| int i_proto | |
| } | msg_type [] |
| #define HTTPD_CL_BUFSIZE 10000 |
Referenced by httpd_ClientInit(), and httpd_StreamCallBack().
| anonymous enum |
|
static |
References httpd_client_t::answer, httpd_client_t::fd, httpd_MsgClean(), net_Close, httpd_client_t::p_buffer, httpd_client_t::p_tls, httpd_client_t::query, and vlc_tls_SessionDelete().
Referenced by httpd_HostDelete(), httpd_HostThread(), and httpd_UrlDelete().
|
static |
References httpd_client_t::answer, httpd_client_t::b_stream_mode, HTTPD_CL_BUFSIZE, HTTPD_CLIENT_RECEIVING, httpd_MsgInit(), httpd_client_t::i_activity_date, httpd_client_t::i_activity_timeout, httpd_client_t::i_buffer, httpd_client_t::i_buffer_size, httpd_client_t::i_state, httpd_client_t::p_buffer, httpd_client_t::query, and xmalloc().
Referenced by httpd_ClientNew().
| char* httpd_ClientIP | ( | const httpd_client_t * | cl, |
| char * | ip, | ||
| int * | port | ||
| ) |
References httpd_client_t::fd, and net_GetPeerAddress().
|
static |
References httpd_client_t::fd, HTTPD_CLIENT_TLS_HS_OUT, httpd_ClientInit(), httpd_client_t::i_ref, httpd_client_t::i_state, httpd_client_t::p_tls, and httpd_client_t::url.
Referenced by httpd_HostThread().
|
static |
References HTTPD_CLIENT_DEAD, HTTPD_CLIENT_RECEIVE_DONE, HTTPD_MSG_ANSWER, HTTPD_MSG_NONE, httpd_NetRecv(), httpd_NetSend(), HTTPD_PROTO_HTTP, HTTPD_PROTO_HTTP0, HTTPD_PROTO_NONE, HTTPD_PROTO_RTSP, httpd_client_t::i_activity_timeout, httpd_message_t::i_body, httpd_client_t::i_buffer, httpd_client_t::i_buffer_size, httpd_message_t::i_name, httpd_message_t::i_proto, httpd_client_t::i_state, httpd_message_t::i_status, httpd_message_t::i_type, httpd_message_t::i_value, httpd_message_t::i_version, msg_type, httpd_message_t::name, name, httpd_message_t::p_body, httpd_client_t::p_buffer, httpd_message_t::psz_args, httpd_message_t::psz_url, httpd_client_t::query, strcasecmp(), strdup(), TAB_APPEND, and httpd_message_t::value.
Referenced by httpd_HostThread().
|
static |
References httpd_client_t::answer, httpd_url_t::catch, httpd_url_t::cb, HTTPD_CLIENT_DEAD, HTTPD_CLIENT_SEND_DONE, httpd_MsgClean(), httpd_NetSend(), HTTPD_PROTO_HTTP, httpd_ReasonFromCode(), httpd_message_t::i_body, httpd_message_t::i_body_offset, httpd_client_t::i_buffer, httpd_client_t::i_buffer_size, httpd_message_t::i_name, httpd_message_t::i_proto, httpd_client_t::i_state, httpd_message_t::i_status, httpd_message_t::i_type, httpd_message_t::i_version, httpd_message_t::name, httpd_message_t::p_body, httpd_client_t::p_buffer, httpd_url_t::p_sys, httpd_client_t::query, httpd_client_t::url, httpd_message_t::value, and xmalloc().
Referenced by httpd_HostThread().
|
static |
References HTTPD_CLIENT_DEAD, HTTPD_CLIENT_RECEIVING, HTTPD_CLIENT_TLS_HS_IN, HTTPD_CLIENT_TLS_HS_OUT, httpd_client_t::i_state, httpd_client_t::p_tls, and vlc_tls_SessionHandshake().
Referenced by httpd_HostThread().
|
static |
< No error
< No error
References HTTPD_MSG_ANSWER, HTTPD_MSG_HEAD, HTTPD_MSG_POST, httpd_MsgAdd(), httpd_MsgGet(), HTTPD_PROTO_HTTP, httpd_message_t::i_body, httpd_message_t::i_proto, httpd_message_t::i_status, httpd_message_t::i_type, httpd_message_t::i_version, httpd_message_t::p_body, httpd_file_t::p_sys, httpd_file_t::pf_fill, httpd_message_t::psz_args, httpd_file_t::psz_mime, httpd_client_t::query, and VLC_SUCCESS.
Referenced by httpd_FileNew().
| httpd_file_sys_t* httpd_FileDelete | ( | httpd_file_t * | file | ) |
References httpd_UrlDelete(), httpd_file_t::p_sys, httpd_file_t::psz_mime, httpd_file_t::psz_url, and httpd_file_t::url.
| httpd_file_t* httpd_FileNew | ( | httpd_host_t * | host, |
| const char * | psz_url, | ||
| const char * | psz_mime, | ||
| const char * | psz_user, | ||
| const char * | psz_password, | ||
| httpd_file_callback_t | pf_fill, | ||
| httpd_file_sys_t * | p_sys | ||
| ) |
|
static |
< No error
< No error
References httpd_ClientIP(), HTTPD_MSG_ANSWER, HTTPD_MSG_HEAD, HTTPD_PROTO_NONE, httpd_ReasonFromCode(), httpd_message_t::i_body, httpd_message_t::i_proto, httpd_message_t::i_status, httpd_message_t::i_type, NI_MAXNUMERICHOST, httpd_message_t::p_body, httpd_handler_t::p_sys, httpd_handler_t::pf_fill, httpd_message_t::psz_args, httpd_message_t::psz_url, VLC_SUCCESS, xmalloc(), and xrealloc().
Referenced by httpd_HandlerNew().
| httpd_handler_sys_t* httpd_HandlerDelete | ( | httpd_handler_t * | handler | ) |
References httpd_UrlDelete(), httpd_handler_t::p_sys, and httpd_handler_t::url.
| httpd_handler_t* httpd_HandlerNew | ( | httpd_host_t * | host, |
| const char * | psz_url, | ||
| const char * | psz_user, | ||
| const char * | psz_password, | ||
| httpd_handler_callback_t | pf_fill, | ||
| httpd_handler_sys_t * | p_sys | ||
| ) |
|
static |
References httpd_host_t::client, httpd_host_t::fds, httpd::host, httpd_HostThread(), httpd_host_t::i_client, httpd::i_host, vlc_url_t::i_port, httpd_host_t::i_ref, httpd_host_t::i_url, httpd_host_t::lock, msg_Err, msg_Info, httpd::mutex, net_ListenClose(), net_ListenTCP, httpd_host_t::nfd, httpd_host_t::p_tls, httpd_host_t::port, vlc_url_t::psz_host, TAB_APPEND, httpd_host_t::thread, httpd_host_t::url, var_InheritInteger, var_InheritString, vlc_clone(), vlc_cond_destroy(), vlc_cond_init(), vlc_custom_create, vlc_mutex_destroy(), vlc_mutex_init(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, vlc_object_release, vlc_object_waitpipe(), VLC_THREAD_PRIORITY_LOW, vlc_tls_Delete(), vlc_UrlClean(), vlc_UrlParse(), and httpd_host_t::wait.
Referenced by vlc_http_HostNew(), vlc_https_HostNew(), and vlc_rtsp_HostNew().
| void httpd_HostDelete | ( | httpd_host_t * | host | ) |
References httpd_host_t::client, httpd_host_t::fds, httpd::host, httpd_ClientClean(), httpd_host_t::i_client, httpd::i_host, httpd_host_t::i_ref, httpd_host_t::i_url, httpd_host_t::lock, msg_Dbg, msg_Err, msg_Warn, httpd::mutex, net_ListenClose(), httpd_host_t::p_tls, httpd_url_t::psz_url, TAB_REMOVE, httpd_host_t::thread, httpd_host_t::url, vlc_cancel(), vlc_cond_destroy(), vlc_join(), vlc_mutex_destroy(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_object_release, vlc_tls_Delete(), and httpd_host_t::wait.
|
static |
References httpd_client_t::answer, httpd_client_t::b_stream_mode, httpd_url_t::catch, httpd_url_t::cb, pollfd::events, httpd_client_t::fd, pollfd::fd, HTTPD_CLIENT_DEAD, HTTPD_CLIENT_RECEIVE_DONE, HTTPD_CLIENT_RECEIVING, HTTPD_CLIENT_SEND_DONE, HTTPD_CLIENT_SENDING, HTTPD_CLIENT_TLS_HS_IN, HTTPD_CLIENT_TLS_HS_OUT, HTTPD_CLIENT_WAITING, httpd_ClientClean(), httpd_ClientNew(), httpd_ClientRecv(), httpd_ClientSend(), httpd_ClientTlsHandshake(), httpd_HtmlError(), HTTPD_MSG_ANSWER, HTTPD_MSG_NONE, HTTPD_MSG_OPTIONS, httpd_MsgAdd(), httpd_MsgClean(), httpd_MsgGet(), httpd_MsgInit(), HTTPD_PROTO_HTTP, HTTPD_PROTO_NONE, HTTPD_PROTO_RTSP, httpd_client_t::i_activity_date, httpd_client_t::i_activity_timeout, httpd_message_t::i_body, httpd_message_t::i_body_offset, httpd_client_t::i_buffer, httpd_client_t::i_buffer_size, httpd_message_t::i_proto, httpd_host_t::i_ref, httpd_client_t::i_ref, httpd_client_t::i_state, httpd_message_t::i_status, httpd_message_t::i_type, httpd_message_t::i_version, httpd_host_t::lock, mdate(), msg_Err, msleep, mutex_cleanup_push, httpd_message_t::p_body, httpd_client_t::p_buffer, httpd_url_t::p_sys, poll(), POLLIN, POLLOUT, httpd_url_t::psz_password, httpd_message_t::psz_url, httpd_url_t::psz_url, httpd_url_t::psz_user, httpd_client_t::query, query, pollfd::revents, strcasecmp(), TAB_APPEND, TAB_REMOVE, httpd_client_t::url, vlc_accept(), vlc_b64_decode(), vlc_cleanup_pop, vlc_cond_wait(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_restorecancel(), vlc_savecancel(), vlc_tls_SessionCreate(), and xmalloc().
Referenced by httpd_HostCreate().
|
static |
References asprintf(), and httpd_ReasonFromCode().
Referenced by httpd_HostThread(), and httpd_RedirectCallBack().
| void httpd_MsgAdd | ( | httpd_message_t * | msg, |
| const char * | name, | ||
| const char * | psz_value, | ||
| ... | |||
| ) |
|
static |
References httpd_MsgInit(), httpd_message_t::i_name, httpd_message_t::name, httpd_message_t::p_body, httpd_message_t::psz_args, httpd_message_t::psz_url, and httpd_message_t::value.
Referenced by httpd_ClientClean(), httpd_ClientSend(), and httpd_HostThread().
| const char* httpd_MsgGet | ( | const httpd_message_t * | msg, |
| const char * | name | ||
| ) |
References httpd_message_t::i_name, httpd_message_t::name, strcasecmp(), and httpd_message_t::value.
|
static |
References httpd_message_t::cl, HTTPD_MSG_NONE, HTTPD_PROTO_NONE, httpd_message_t::i_body, httpd_message_t::i_body_offset, httpd_message_t::i_name, httpd_message_t::i_proto, httpd_message_t::i_status, httpd_message_t::i_type, httpd_message_t::i_value, httpd_message_t::i_version, httpd_message_t::name, httpd_message_t::p_body, httpd_message_t::psz_args, httpd_message_t::psz_url, and httpd_message_t::value.
Referenced by httpd_ClientInit(), httpd_HostThread(), and httpd_MsgClean().
|
static |
References httpd_client_t::fd, httpd_client_t::p_tls, and tls_Recv.
Referenced by httpd_ClientRecv().
|
static |
References httpd_client_t::fd, httpd_client_t::p_tls, and tls_Send.
Referenced by httpd_ClientRecv(), and httpd_ClientSend().
|
static |
References http_status_info::i_code, psz_fallback_reason, and http_status_info::psz_reason.
Referenced by httpd_ClientSend(), httpd_HandlerCallBack(), and httpd_HtmlError().
|
static |
< No error
< No error
References httpd_HtmlError(), HTTPD_MSG_ANSWER, httpd_MsgAdd(), HTTPD_PROTO_HTTP, httpd_message_t::i_body, httpd_message_t::i_proto, httpd_message_t::i_status, httpd_message_t::i_type, httpd_message_t::i_version, httpd_message_t::p_body, httpd_redirect_t::psz_dst, and VLC_SUCCESS.
Referenced by httpd_RedirectNew().
| void httpd_RedirectDelete | ( | httpd_redirect_t * | rdir | ) |
References httpd_UrlDelete(), httpd_redirect_t::psz_dst, and httpd_redirect_t::url.
| httpd_redirect_t* httpd_RedirectNew | ( | httpd_host_t * | host, |
| const char * | psz_url_dst, | ||
| const char * | psz_url_src | ||
| ) |
| char* httpd_ServerIP | ( | const httpd_client_t * | cl, |
| char * | ip, | ||
| int * | port | ||
| ) |
References httpd_client_t::fd, and net_GetSockAddress().
|
static |
< No error
< Unspecified error
< Unspecified error
< No error
< No error
References httpd_client_t::b_stream_mode, HTTPD_CL_BUFSIZE, HTTPD_MSG_ANSWER, HTTPD_MSG_HEAD, httpd_MsgAdd(), HTTPD_PROTO_HTTP, httpd_message_t::i_body, httpd_message_t::i_body_offset, httpd_stream_t::i_buffer_last_pos, httpd_stream_t::i_buffer_pos, httpd_stream_t::i_buffer_size, httpd_stream_t::i_header, httpd_message_t::i_name, httpd_message_t::i_proto, httpd_message_t::i_status, httpd_message_t::i_type, httpd_message_t::i_version, httpd_stream_t::lock, httpd_message_t::name, httpd_message_t::p_body, httpd_stream_t::p_buffer, httpd_stream_t::p_header, httpd_stream_t::psz_mime, strcasecmp(), httpd_message_t::value, VLC_EGENERIC, vlc_mrand48(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and xmalloc().
Referenced by httpd_StreamNew().
| void httpd_StreamDelete | ( | httpd_stream_t * | stream | ) |
| int httpd_StreamHeader | ( | httpd_stream_t * | stream, |
| uint8_t * | p_data, | ||
| int | i_data | ||
| ) |
< No error
References httpd_stream_t::i_header, httpd_stream_t::lock, httpd_stream_t::p_header, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and xmalloc().
| httpd_stream_t* httpd_StreamNew | ( | httpd_host_t * | host, |
| const char * | psz_url, | ||
| const char * | psz_mime, | ||
| const char * | psz_user, | ||
| const char * | psz_password | ||
| ) |
References HTTPD_MSG_GET, HTTPD_MSG_HEAD, HTTPD_MSG_POST, httpd_StreamCallBack(), httpd_UrlCatch(), httpd_UrlNew(), httpd_stream_t::i_buffer_last_pos, httpd_stream_t::i_buffer_pos, httpd_stream_t::i_buffer_size, httpd_stream_t::i_header, httpd_stream_t::lock, httpd_stream_t::p_buffer, httpd_stream_t::p_header, httpd_stream_t::psz_mime, strdup(), httpd_stream_t::url, vlc_mime_Ext2Mime(), vlc_mutex_init(), and xmalloc().
| int httpd_StreamSend | ( | httpd_stream_t * | stream, |
| uint8_t * | p_data, | ||
| int | i_data | ||
| ) |
< No error
< No error
References httpd_stream_t::i_buffer_last_pos, httpd_stream_t::i_buffer_pos, httpd_stream_t::i_buffer_size, httpd_stream_t::lock, httpd_stream_t::p_buffer, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
| int httpd_UrlCatch | ( | httpd_url_t * | url, |
| int | i_msg, | ||
| httpd_callback_t | cb, | ||
| httpd_callback_sys_t * | p_sys | ||
| ) |
< No error
References httpd_url_t::catch, httpd_url_t::cb, httpd_url_t::lock, httpd_url_t::p_sys, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
| void httpd_UrlDelete | ( | httpd_url_t * | url | ) |
References httpd_host_t::client, httpd_url_t::host, httpd_ClientClean(), httpd_host_t::i_client, httpd_host_t::i_url, httpd_host_t::lock, httpd_url_t::lock, msg_Warn, httpd_url_t::psz_password, httpd_url_t::psz_url, httpd_url_t::psz_user, TAB_REMOVE, httpd_host_t::url, httpd_client_t::url, vlc_mutex_destroy(), vlc_mutex_lock(), and vlc_mutex_unlock().
| httpd_url_t* httpd_UrlNew | ( | httpd_host_t * | host, |
| const char * | psz_url, | ||
| const char * | psz_user, | ||
| const char * | psz_password | ||
| ) |
References httpd_url_t::catch, httpd_url_t::cb, httpd_url_t::host, HTTPD_MSG_MAX, httpd_host_t::i_url, httpd_host_t::lock, httpd_url_t::lock, msg_Warn, httpd_url_t::p_sys, httpd_url_t::psz_password, httpd_url_t::psz_url, httpd_url_t::psz_user, strdup(), TAB_APPEND, httpd_host_t::url, vlc_cond_signal(), vlc_mutex_init(), vlc_mutex_lock(), vlc_mutex_unlock(), httpd_host_t::wait, and xmalloc().
| httpd_host_t* vlc_http_HostNew | ( | vlc_object_t * | p_this | ) |
References httpd_HostCreate(), and msg_Err.
| httpd_host_t* vlc_https_HostNew | ( | vlc_object_t * | obj | ) |
| httpd_host_t* vlc_rtsp_HostNew | ( | vlc_object_t * | p_this | ) |
References httpd_HostCreate(), and msg_Err.
|
static |
| int i_proto |
| int i_type |
| struct { ... } msg_type[] |
Referenced by httpd_ClientRecv().
| const char name[16] |
Referenced by aout_FiltersNew(), cmp_entity(), config_ChainParse(), config_LoadCmdLine(), getaddrinfo(), getAppDependentDir(), httpd_ClientRecv(), input_ControlVarStop(), SelectClockSource(), sout_StreamChainNew(), ThreadChangeFilters(), vlc_InitActions(), vlc_keycode2str(), vlc_object_get_name(), vlc_plugin_setter(), and vlc_sdp_Start().
|
static |
Referenced by httpd_ReasonFromCode().
1.8.1.2