FFmpeg
|
#include "libavutil/avutil.h"
#include "network.h"
#include "libavcodec/internal.h"
#include "libavutil/mem.h"
#include "url.h"
#include "libavutil/time.h"
Go to the source code of this file.
Functions | |
void | ff_tls_init (void) |
void | ff_tls_deinit (void) |
int | ff_network_init (void) |
int | ff_network_wait_fd (int fd, int write) |
int | ff_network_wait_fd_timeout (int fd, int write, int64_t timeout, AVIOInterruptCB *int_cb) |
This works similarly to ff_network_wait_fd, but waits up to 'timeout' microseconds Uses ff_network_wait_fd in a loop. More... | |
void | ff_network_close (void) |
int | ff_is_multicast_address (struct sockaddr *addr) |
Variables | |
int | ff_network_inited_globally |
Function Documentation
int ff_is_multicast_address | ( | struct sockaddr * | addr | ) |
Definition at line 202 of file network.c.
Referenced by ff_udp_set_remote_url().
Definition at line 173 of file network.c.
Referenced by avformat_network_deinit(), ff_rtsp_open_transport_ctx(), ffurl_closep(), rtsp_read_close(), rtsp_write_close(), sap_read_close(), sap_write_close(), and url_alloc_for_protocol().
int ff_network_init | ( | void | ) |
Definition at line 126 of file network.c.
Referenced by avformat_network_init(), ff_rtsp_open_transport_ctx(), sap_read_header(), sap_write_header(), and url_alloc_for_protocol().
int ff_network_wait_fd | ( | int | fd, |
int | write | ||
) |
Definition at line 144 of file network.c.
Referenced by ff_network_wait_fd_timeout(), udp_read(), and udp_write().
int ff_network_wait_fd_timeout | ( | int | fd, |
int | write, | ||
int64_t | timeout, | ||
AVIOInterruptCB * | int_cb | ||
) |
This works similarly to ff_network_wait_fd, but waits up to 'timeout' microseconds Uses ff_network_wait_fd in a loop.
Socket descriptor Set 1 to wait for socket able to be read, 0 to be written Timeout interval, in microseconds. Actual precision is 100000 mcs, due to ff_network_wait_fd usage
- Parameters
-
int_cb Interrupt callback, is checked after each ff_network_wait_fd call
- Returns
- 0 if data can be read/written, AVERROR(ETIMEDOUT) if timeout expired, or negative error code
Definition at line 153 of file network.c.
Referenced by tcp_read(), and tcp_write().
Definition at line 101 of file network.c.
Referenced by avformat_network_deinit(), tls_close(), and tls_open().
Definition at line 69 of file network.c.
Referenced by avformat_network_init(), and tls_open().
Variable Documentation
int ff_network_inited_globally |
Definition at line 124 of file network.c.
Referenced by avformat_network_init().
Generated on Mon Nov 18 2024 06:52:08 for FFmpeg by 1.8.11