VLC 4.0.0-dev
|
HTTP write-only files. More...
Functions | |
struct vlc_http_outfile * | vlc_http_outfile_create (struct vlc_http_mgr *mgr, const char *url, const char *ua, const char *user, const char *pwd) |
Creates an HTTP output file. | |
ssize_t | vlc_http_outfile_write (struct vlc_http_outfile *, block_t *b) |
Writes data. | |
int | vlc_http_outfile_close (struct vlc_http_outfile *) |
HTTP write-only files.
int vlc_http_outfile_close | ( | struct vlc_http_outfile * | f | ) |
struct vlc_http_outfile * vlc_http_outfile_create | ( | struct vlc_http_mgr * | mgr, |
const char * | url, | ||
const char * | ua, | ||
const char * | user, | ||
const char * | pwd | ||
) |
Creates an HTTP output file.
mgr | HTTP connection manager |
url | URL of the file to write |
ua | user-agent string (NULL to ignore) |
user | username for authentication (NULL to skip) |
pwd | password for authentication (NULL to skip) |
References vlc_http_msg::authority, vlc_url_t::i_port, vlc_url_t::psz_host, vlc_url_t::psz_path, vlc_url_t::psz_protocol, vlc_http_msg::status, unlikely, vlc_ascii_strcasecmp(), vlc_http_authority(), vlc_http_mgr_get_jar(), vlc_http_mgr_request(), vlc_http_msg_add_agent(), vlc_http_msg_add_cookies(), vlc_http_msg_add_creds_basic(), vlc_http_msg_add_header(), vlc_http_msg_destroy(), vlc_http_msg_get_status(), vlc_http_req_create(), vlc_UrlClean(), and vlc_UrlParse().
ssize_t vlc_http_outfile_write | ( | struct vlc_http_outfile * | f, |
block_t * | b | ||
) |
Writes data.
References vlc_http_msg_write().