Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
Dres_send.cpp156 static int connect_with_timeout(int sock, const struct sockaddr* nsap, socklen_t salen,
662 struct sockaddr* nsap; in send_vc() local
677 nsap = reinterpret_cast<sockaddr*>(&ss); in send_vc()
678 nsaplen = sockaddrSize(nsap); in send_vc()
693 !sock_eq((struct sockaddr*)(void*)&peer, nsap) || in send_vc()
703 statp->tcp_nssock.reset(socket(nsap->sa_family, SOCK_STREAM | SOCK_CLOEXEC, 0)); in send_vc()
727 if (random_bind(statp->tcp_nssock, nsap->sa_family) < 0) { in send_vc()
729 dump_error("bind/vc", nsap, nsaplen); in send_vc()
733 if (connect_with_timeout(statp->tcp_nssock, nsap, (socklen_t)nsaplen, in send_vc()
736 dump_error("connect/vc", nsap, nsaplen); in send_vc()
[all …]
DDnsTlsTransport.cpp101 const sockaddr* nsap = reinterpret_cast<const sockaddr*>(&ss); in sendUdpQuery() local
102 const int nsaplen = sockaddrSize(nsap); in sendUdpQuery()
104 android::base::unique_fd fd{socket(nsap->sa_family, sockType, 0)}; in sendUdpQuery()
114 if (connect(fd.get(), nsap, (socklen_t)nsaplen) < 0) { in sendUdpQuery()
/packages/apps/Nfc/nci/jni/
DNativeLlcpConnectionlessSocket.cpp61 jint nsap, in nativeLlcpConnectionlessSocket_doSendTo() argument
64 << StringPrintf("%s: nsap = %d", __func__, nsap); in nativeLlcpConnectionlessSocket_doSendTo()
81 NFA_P2pSendUI((tNFA_HANDLE)handle, nsap, byte_count, raw_ptr); in nativeLlcpConnectionlessSocket_doSendTo()