X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_network.h;h=0a51a12ee3107d0ca4c83f87685519712938de4c;hb=37a27cc6447a51b5780adf0917ab7b22a4456a5b;hp=77b38290b24c05a9a0cbc8b0be19eb7ac65c8321;hpb=8abe30826a4cfa0d25f37d609867027e4f8c9ca5;p=vlc diff --git a/include/vlc_network.h b/include/vlc_network.h index 77b38290b2..0a51a12ee3 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -92,9 +92,10 @@ int net_Socket (vlc_object_t *obj, int family, int socktype, int proto); VLC_EXPORT( int, net_Connect, (vlc_object_t *p_this, const char *psz_host, int i_port, int socktype, int protocol) ); #define net_Connect(a, b, c, d, e) net_Connect(VLC_OBJECT(a), b, c, d, e) -VLC_EXPORT( int *, net_Listen, (vlc_object_t *p_this, const char *psz_host, int i_port, int protocol) ); +VLC_EXPORT( int *, net_Listen, (vlc_object_t *p_this, const char *psz_host, int i_port, int socktype, int protocol) ); -#define net_ListenTCP(a, b, c) net_Listen(VLC_OBJECT(a), b, c, IPPROTO_TCP) +#define net_ListenTCP(a, b, c) net_Listen(VLC_OBJECT(a), b, c, \ + SOCK_STREAM, IPPROTO_TCP) static inline int net_ConnectTCP (vlc_object_t *obj, const char *host, int port) {