#include "libavutil/avstring.h"#include "libavutil/dict.h"#include "libavutil/opt.h"#include "libavutil/time.h"#include "os_support.h"#include "avformat.h"#include "url.h"Go to the source code of this file.
Definition at line 213 of file avio.c.
Referenced by url_find_protocol().
Iterate over all available protocols.
Definition at line 35 of file avio.c.
Referenced by avio_enum_protocols(), url_find_protocol(), and urlcontext_child_class_next().
Iterate through names of available protocols.
Definition at line 86 of file avio.c.
Referenced by avio_enum_protocols(), and show_protocols().
Register the URLProtocol protocol.
Definition at line 108 of file avio.c.
Referenced by ffurl_alloc().
Connect an URLContext that has been allocated by ffurl_alloc.
Definition at line 194 of file avio.c.
Referenced by avio_check(), ffurl_open(), mmsh_open_internal(), open_input(), and rtmp_http_open().
Definition at line 218 of file avio.c.
Referenced by avio_find_protocol_name(), and ffurl_alloc().
Create a URLContext for accessing to the resource indicated by url, but do not initiate the connection yet.
Definition at line 249 of file avio.c.
Referenced by avio_check(), ffurl_open(), mmsh_open_internal(), open_input(), and rtmp_http_open().
Create an URLContext for accessing to the resource indicated by url, and open it.
Definition at line 269 of file avio.c.
Referenced by avio_open2(), cache_open(), concat_open(), crypto_open2(), ftp_connect_control_connection(), ftp_connect_data_connection(), gopher_open(), hls_read(), http_open_cnx_internal(), icecast_open(), ism_flush(), ism_seek(), md5_close(), mms_open(), open_input(), rtmp_calc_swfhash(), rtmp_open(), rtmpe_open(), rtp_new_av_stream(), rtp_open(), rtsp_listen(), rtsp_read_setup(), sap_read_header(), sap_write_header(), srtp_open(), subfile_open(), and tls_open().
Definition at line 289 of file avio.c.
Referenced by ffurl_read(), ffurl_read_complete(), and ffurl_write().
Read up to size bytes from the resource accessed by h, and store the read bytes in buf.
Definition at line 330 of file avio.c.
Referenced by cache_read(), concat_read(), crypto_read(), ff_rtmp_packet_read(), ff_rtmp_packet_read_internal(), ffio_fdopen(), ftp_getc(), ftp_read(), gopher_read(), hls_read(), http_buf_read(), http_getc(), read_from_url(), rtmp_http_open(), rtmp_http_read(), rtmp_http_send_cmd(), rtmp_write(), rtmpe_read(), sap_fetch_packet(), sap_read_header(), srtp_read(), and subfile_read().
Read as many bytes as possible (up to size), calling the read function multiple times if necessary.
This makes special short-read handling in applications unnecessary, if the return value is < size then it is certain there was either an error or the end of file was reached.
Definition at line 337 of file avio.c.
Referenced by ff_rtsp_tcp_read_packet(), get_chunk_header(), get_http_header_data(), get_tcp_server_response(), open_input(), read_data_packet(), read_from_url(), read_line(), rtmp_calc_swfhash(), rtmp_handshake(), rtmp_packet_read_one_chunk(), rtmp_receive_hs_packet(), rtmp_server_handshake(), and rtsp_read_announce().
Write size bytes from buf to the resource accessed by h.
Definition at line 344 of file avio.c.
Referenced by ff_rtmp_packet_write(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_punch_packets(), ff_rtp_send_rtcp_feedback(), ff_rtsp_tcp_write_packet(), ffio_fdopen(), ftp_send_command(), ftp_write(), gopher_write(), http_connect(), http_send_data(), http_shutdown(), http_write(), icecast_write(), ism_write(), md5_close(), rtmp_handshake(), rtmp_send_hs_packet(), rtmp_server_handshake(), rtmpe_write(), rtp_write(), rtsp_send_reply(), sap_write_close(), sap_write_packet(), send_command_packet(), and srtp_write().
Change the position that will be used by the next read/write operation on the resource accessed by h.
Definition at line 355 of file avio.c.
Referenced by cache_seek(), concat_read(), concat_seek(), ffio_fdopen(), ffurl_connect(), ffurl_size(), ism_seek(), open_input(), rtmp_calc_swfhash(), and slave_seek().
Close the resource accessed by the URLContext h, and free the memory used by it.
Also set the URLContext pointer to NULL.
Definition at line 365 of file avio.c.
Referenced by ffurl_close(), ftp_abort(), ftp_close_both_connections(), ftp_close_data_connection(), ftp_open(), http_close(), http_open_cnx(), and mmsh_close().
Definition at line 387 of file avio.c.
Referenced by avio_check(), avio_close(), avio_open2(), cache_close(), close_connection(), concat_close(), concat_open(), crypto_close(), ff_rtp_chain_mux_open(), ff_rtsp_undo_setup(), ffurl_open(), free_playlist_list(), gopher_close(), hls_close(), hls_read(), hls_read_seek(), http_seek(), icecast_close(), ism_flush(), ism_free(), ism_seek(), md5_close(), mms_close(), mmsh_open_internal(), open_input(), read_data(), recheck_discard_flags(), rtmp_calc_swfhash(), rtmp_close(), rtmp_http_close(), rtmp_open(), rtmpe_close(), rtp_close(), rtp_new_av_stream(), rtp_open(), rtsp_listen(), sap_read_close(), sap_write_close(), srtp_close(), subfile_close(), subfile_open(), tls_close(), and tls_open().
Return the name of the protocol that will handle the passed URL.
NULL is returned if no protocol could be found for the given URL.
Definition at line 393 of file avio.c.
Referenced by add_file(), and assert_file_overwrite().
Return AVIO_FLAG_* access flags corresponding to the access permissions of the resource in url, or a negative value corresponding to an AVERROR code in case of failure.
The returned access flags are masked by the value in flags.
Definition at line 400 of file avio.c.
Referenced by assert_file_overwrite(), build_feed_streams(), and find_image_range().
Return the filesize of the resource accessed by h, AVERROR(ENOSYS) if the operation is not supported by h, or another negative value corresponding to an AVERROR error code in case of failure.
Definition at line 419 of file avio.c.
Referenced by concat_open().
Return the file descriptor associated with this URL.
For RTP, this will return only the RTP file descriptor, not the RTCP file descriptor.
Definition at line 434 of file avio.c.
Referenced by ftp_get_file_handle(), http_get_file_handle(), rtp_open(), rtsp_write_packet(), sap_fetch_packet(), sap_write_header(), srtp_get_file_handle(), and tls_open().
Return the file descriptors associated with this URL.
Definition at line 441 of file avio.c.
Referenced by srtp_get_multi_file_handle().
Signal the URLContext that we are done reading or writing the stream.
Definition at line 456 of file avio.c.
Referenced by ftp_shutdown().
Check if the user has requested to interrup a blocking function associated with cb.
Definition at line 463 of file avio.c.
Referenced by avformat_find_stream_info(), do_tls_poll(), ff_listen_connect(), ff_network_wait_fd_timeout(), ff_poll_interrupt(), hls_read(), read_data(), retry_transfer_wrapper(), and rtp_read().
Definition at line 33 of file avio.c.
Referenced by ffurl_protocol_next(), and ffurl_register_protocol().
Definition at line 76 of file avio.c.
Referenced by ffio_url_child_class_next(), and url_alloc_for_protocol().