Searched refs:asSockaddrPtr (Results 1 – 3 of 3) sorted by relevance
/system/netd/libnetdutils/include/netdutils/ |
D | Socket.h | 29 inline sockaddr* asSockaddrPtr(void* addr) { in asSockaddrPtr() function 33 inline const sockaddr* asSockaddrPtr(const void* addr) { in asSockaddrPtr() function
|
D | Syscalls.h | 120 RETURN_IF_NOT_OK(getsockname(sock, asSockaddrPtr(&addr), &addrlen)); in getsockname() 136 return bind(sock, asSockaddrPtr(&addr), sizeof(addr)); in bind() 141 return connect(sock, asSockaddrPtr(&addr), sizeof(addr)); in connect() 163 return sendto(sock, buf, flags, asSockaddrPtr(&dst), sizeof(dst)); in sendto() 175 ASSIGN_OR_RETURN(auto used, recvfrom(sock, dst, flags, asSockaddrPtr(&addr), &addrlen)); in recvfrom()
|
/system/netd/libnetdutils/ |
D | SyscallsTest.cpp | 136 EXPECT_CALL(mSyscalls, bind(kFd, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F() 142 EXPECT_CALL(mSyscalls, bind(kFd, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F() 153 EXPECT_CALL(mSyscalls, connect(kFd, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F() 159 EXPECT_CALL(mSyscalls, connect(kFd, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F() 173 EXPECT_CALL(mSyscalls, sendto(kFd, slice, kFlags, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F()
|