Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/native/libs/binder/
DRpcSocketAddress.h35 virtual const sockaddr* addr() const = 0;
53 const sockaddr* addr() const override { return reinterpret_cast<const sockaddr*>(&mAddr); } in addr()
72 const sockaddr* addr() const override { return reinterpret_cast<const sockaddr*>(&mAddr); } in addr()
81 InetSocketAddress(const sockaddr* sockAddr, size_t size, const char* addr, unsigned int port) in InetSocketAddress()
86 [[nodiscard]] const sockaddr* addr() const override { return mSockAddr; } in addr()
110 const sockaddr* mSockAddr;
Dvm_sockets.h45 unsigned char svm_zero[sizeof(struct sockaddr) - sizeof(sa_family_t) - sizeof(unsigned short) -
DRpcServer.cpp86 if (0 != getsockname(mServer.get(), reinterpret_cast<sockaddr*>(&addr), &len)) { in setupInetServer()
137 std::function<sp<IBinder>(const sockaddr*, socklen_t)>&& makeObject) { in setPerSessionRootObject() argument
184 TEMP_FAILURE_RETRY(accept4(mServer.get(), reinterpret_cast<sockaddr*>(&addr), in join()
399 server->mRootObjectFactory(reinterpret_cast<const sockaddr*>(&addr), in establishConnection()
Dlibbinder_rpc_unstable.cpp41 server->setPerSessionRootObject([=](const sockaddr* addr, socklen_t addrlen) { in RunRpcServerWithFactory()
/frameworks/libs/net/common/netd/libnetdutils/include/netdutils/
DSocket.h29 inline sockaddr* asSockaddrPtr(void* addr) { in asSockaddrPtr()
30 return reinterpret_cast<sockaddr*>(addr); in asSockaddrPtr()
33 inline const sockaddr* asSockaddrPtr(const void* addr) { in asSockaddrPtr()
34 return reinterpret_cast<const sockaddr*>(addr); in asSockaddrPtr()
DMockSyscalls.h39 MOCK_CONST_METHOD3(getsockname, Status(Fd sock, sockaddr* addr, socklen_t* addrlen));
45 MOCK_CONST_METHOD3(bind, Status(Fd sock, const sockaddr* addr, socklen_t addrlen));
46 MOCK_CONST_METHOD3(connect, Status(Fd sock, const sockaddr* addr, socklen_t addrlen));
57 const sockaddr* dst, socklen_t dstlen));
58 MOCK_CONST_METHOD5(recvfrom, StatusOr<Slice>(Fd sock, const Slice dst, int flags, sockaddr* src,
DSyscalls.h50 virtual Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const = 0;
58 virtual Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0;
60 virtual Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0;
74 virtual StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst,
77 virtual StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src,
DInternetAddresses.h259 static IPSockAddr toIPSockAddr(const sockaddr& sa) { in toIPSockAddr()
270 return toIPSockAddr(*reinterpret_cast<const sockaddr*>(&ss)); in toIPSockAddr()
/frameworks/opt/net/voip/src/jni/rtp/
DRtpStream.cpp50 if (socket == -1 || bind(socket, (sockaddr *)&ss, sizeof(ss)) != 0 || in create()
51 getsockname(socket, (sockaddr *)&ss, &len) != 0) { in create()
77 if (bind(socket, (sockaddr *)&ss, sizeof(ss)) == 0) { in create()
DAudioGroup.cpp301 (sockaddr *)&mRemote, sizeof(mRemote)); in encode()
360 sendto(mSocket, buffer, length + 12, MSG_DONTWAIT, (sockaddr *)&mRemote, in encode()
419 MSG_TRUNC | MSG_DONTWAIT, (sockaddr *)&remote, &addrlen); in decode()
/frameworks/av/media/libstagefright/rtsp/
DUDPPusher.cpp46 CHECK_EQ(0, bind(mSocket, (const struct sockaddr *)&addr, sizeof(addr))); in UDPPusher()
90 (const struct sockaddr *)&mRemoteAddr, sizeof(mRemoteAddr)); in onPush()
135 (const struct sockaddr *)&tmp, in onMessageReceived()
DARTPConnection.cpp162 (const struct sockaddr *)&addr, sizeof(addr)) < 0) { in MakePortPair()
169 (const struct sockaddr *)&addr, sizeof(addr)) == 0) { in MakePortPair()
237 struct sockaddr *addr; in MakeRTPSocketPair()
242 addr = (struct sockaddr *)&addr6; in MakeRTPSocketPair()
248 addr = (struct sockaddr *)&addr4; in MakeRTPSocketPair()
731 struct sockaddr* pRemoteRTCPAddr; in send()
737 pRemoteRTCPAddr = (struct sockaddr *)&info->mRemoteRTCPAddr6; in send()
740 pRemoteRTCPAddr = (struct sockaddr *)&info->mRemoteRTCPAddr; in send()
DARTPWriter.cpp630 struct sockaddr *remAddr; in send()
635 remAddr = (struct sockaddr *)&mRTCPAddr6; in send()
637 remAddr = (struct sockaddr *)&mRTPAddr6; in send()
641 remAddr = (struct sockaddr *)&mRTCPAddr; in send()
643 remAddr = (struct sockaddr *)&mRTPAddr; in send()
1676 struct sockaddr *localAddr = mIsIPv6 ? in makeSocketPairAndBind()
1677 (struct sockaddr*)&mLocalAddr6 : (struct sockaddr*)&mLocalAddr; in makeSocketPairAndBind()
DARTPSession.cpp110 CHECK_EQ(0, bind(s, (const struct sockaddr *)&addr, sizeof(addr))); in MakeUDPSocket()
/frameworks/libs/net/common/netd/libnetdutils/
DSyscalls.cpp60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname()
86 Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in bind()
94 Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in connect()
153 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, in sendto()
162 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src, in recvfrom()
DSyscallsTest.cpp76 .WillOnce(Invoke([expected](Fd, sockaddr* addr, socklen_t* addrlen) { in TEST_F()
190 [expected, used](Fd, const Slice, int, sockaddr* src, socklen_t* srclen) { in TEST_F()
/frameworks/native/libs/binder/include/binder/
DRpcServer.h130 void setPerSessionRootObject(std::function<sp<IBinder>(const sockaddr*, socklen_t)>&& object);
195 std::function<sp<IBinder>(const sockaddr*, socklen_t)> mRootObjectFactory;
/frameworks/base/cmds/interrupter/
Dinterrupter.c52 DEFINE_INTERCEPT(accept, int, int, struct sockaddr*, socklen_t*);
/frameworks/native/cmds/ip-up-vpn/
Dip-up-vpn.c41 static int set_address(struct sockaddr *sa, const char *address) { in set_address()
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel_factory.cpp98 socket_.Get(), reinterpret_cast<sockaddr*>(&remote), sizeof(remote))); in Connect()
Dservice_endpoint.cpp165 bind(fd.Get(), reinterpret_cast<sockaddr*>(&local), sizeof(local));
222 reinterpret_cast<sockaddr*>(&remote), in AcceptConnection()
/frameworks/native/libs/binder/tests/rpc_fuzzer/
Dmain.cpp142 connect(fd.get(), reinterpret_cast<sockaddr*>(&addr), sizeof(addr)))) in LLVMFuzzerTestOneInput()
/frameworks/libs/net/common/native/tcutils/
Dtcutils.cpp390 if (bind(fd, (const struct sockaddr *)&KERNEL_NLADDR, in sendAndProcessNetlinkResponse()
398 if (connect(fd, (const struct sockaddr *)&KERNEL_NLADDR, in sendAndProcessNetlinkResponse()
/frameworks/base/core/jni/
Dfd_utils.cpp418 sockaddr* addr = reinterpret_cast<sockaddr*>(&ss); in GetSocketName()
/frameworks/base/services/core/jni/
Dcom_android_server_connectivity_Vpn.cpp50 static inline in_addr_t *as_in_addr(sockaddr *sa) { in as_in_addr()

12