From 28306e6d620c109ddd672f7243adfbc2bbb3b18f Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 30 May 2013 01:08:51 +0200 Subject: network: factor out bind-listening code Introduce ff_listen_bind, to be shared with the other non-tcp network protocols. --- libavformat/network.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/network.h') 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 */ -- cgit v1.2.1