Home
last modified time | relevance | path

Searched refs:sap_fd (Results 1 – 1 of 1) sorted by relevance

/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-send.c215 int fd = -1, sap_fd = -1; in pa__init() local
373 if ((sap_fd = pa_socket_cloexec(af, SOCK_DGRAM, 0)) < 0) { in pa__init()
378 if (af == AF_INET && bind(sap_fd, (struct sockaddr*) &src_sap_sa4, sizeof(src_sap_sa4)) < 0) { in pa__init()
382 …} else if (af == AF_INET6 && bind(sap_fd, (struct sockaddr*) &src_sap_sa6, sizeof(src_sap_sa6)) < … in pa__init()
388 … if (af == AF_INET && connect(sap_fd, (struct sockaddr*) &dst_sap_sa4, sizeof(dst_sap_sa4)) < 0) { in pa__init()
392 …} else if (af == AF_INET6 && connect(sap_fd, (struct sockaddr*) &dst_sap_sa6, sizeof(dst_sap_sa6))… in pa__init()
400 setsockopt(sap_fd, IPPROTO_IP, IP_MULTICAST_LOOP, &j, sizeof(j)) < 0) { in pa__init()
413 if (setsockopt(sap_fd, IPPROTO_IP, IP_MULTICAST_TTL, &_ttl, sizeof(_ttl)) < 0) { in pa__init()
493 pa_sap_context_init_send(&u->sap_context, sap_fd, p); in pa__init()
517 if (sap_fd >= 0) in pa__init()
[all …]