diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-05-30 01:08:51 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-06-01 15:29:53 +0200 |
commit | 28306e6d620c109ddd672f7243adfbc2bbb3b18f (patch) | |
tree | fc2df8e1f6dcc773f9b338559ac6804738992d07 /libavformat/network.h | |
parent | de421b208578386bfb4416c67c9922877e670049 (diff) | |
download | ffmpeg-28306e6d620c109ddd672f7243adfbc2bbb3b18f.tar.gz |
network: factor out bind-listening code
Introduce ff_listen_bind, to be shared with the other non-tcp
network protocols.
Diffstat (limited to 'libavformat/network.h')
-rw-r--r-- | libavformat/network.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h index 51607673e2..db1b09a91e 100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -209,4 +209,7 @@ const char *ff_gai_strerror(int ecode); int ff_is_multicast_address(struct sockaddr *addr); +int ff_listen_bind(int fd, const struct sockaddr *addr, + socklen_t addrlen, int timeout); + #endif /* AVFORMAT_NETWORK_H */ |