Lines Matching refs:udpsd
1182 self->udpsd = socket( AF_INET, SOCK_DGRAM, 0 );
1183 require_action( dnssd_SocketValid(self->udpsd), exit, err = mStatus_UnknownErr; LogErr( "SetupSockets", "socket" ) );
1186 err = setsockopt(self->udpsd, SOL_SOCKET, SO_REUSEADDR, &kOn, sizeof(kOn));
1187 require_action( !err, exit, LogErr( "SetupSockets", "SO_REUSEADDR self->udpsd" ) );
1190 err = bind( self->udpsd, ( struct sockaddr* ) &self->addr, sizeof( self->addr ) );
1191 require_action( !err, exit, LogErr( "SetupSockets", "bind self->udpsd" ) );
1203 self->llq_udpsd = self->udpsd;
2312 res = sendto( d->udpsd, &pkt->msg, pkt->len, 0, ( struct sockaddr* ) &pkt->src, sizeof( pkt->src ) );
2854 if ( d->udpsd + 1 > staticMaxFD ) staticMaxFD = d->udpsd + 1;
2886 FD_SET( d->udpsd, &rset );
2913 close( d->udpsd );
2917 d->tcpsd = d->udpsd = d->tlssd = d->llq_tcpsd = d->llq_udpsd = -1;
2958 if (FD_ISSET(d->udpsd, &rset)) RecvUDPMessage( d, d->udpsd );