[vlc-devel] [PATCH v2 2/3] access: srt: Refactoring to support connection recovery
Rémi Denis-Courmont
remi at remlab.net
Sun Mar 18 14:06:44 CET 2018
Le tiistaina 6. maaliskuuta 2018, 5.55.09 EET Justin Kim a écrit :
> - p_sys->i_poll_id = srt_epoll_create();
> - if ( p_sys->i_poll_id == -1 )
> + srt_epoll_add_usock( p_sys->i_poll_id, p_sys->sock,
> + &(int) { SRT_EPOLL_ERR | SRT_EPOLL_IN });
> +
> + /* Schedule a connect */
> + msg_Dbg( p_stream, "Schedule SRT connect (dest addresss: %s, port:
> %d).", + parsed_url.psz_host, parsed_url.i_port);
> +
> + stat = srt_connect( p_sys->sock, res->ai_addr, sizeof (struct
> sockaddr));
Is this IPv4-specific? If so, you need to force the address family before
resolution... Otherwise, you cannot assume the socket address size.
--
雷米‧德尼-库尔蒙
https://www.remlab.net/
More information about the vlc-devel
mailing list