Home
last modified time | relevance | path

Searched defs:sock (Results 1 – 25 of 54) sorted by relevance

123

/system/netd/libnetdutils/include/netdutils/
DSyscalls.h117 StatusOr<SockaddrT> getsockname(Fd sock) const { in getsockname()
125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt()
130 Status setsockopt(Fd sock, int level, int optname, const SockoptT& opt) const { in setsockopt()
135 Status bind(Fd sock, const SockaddrT& addr) const { in bind()
140 Status connect(Fd sock, const SockaddrT& addr) const { in connect()
162 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const SockaddrT& dst) const { in sendto()
167 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom()
172 StatusOr<std::pair<Slice, SockaddrT>> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom()
/system/bt/btif/src/
Dbtif_sock_l2cap.cc121 static char packet_get_head_l(l2cap_socket* sock, uint8_t** data, in packet_get_head_l()
153 static char packet_put_head_l(l2cap_socket* sock, const void* data, in packet_put_head_l()
180 static char packet_put_tail_l(l2cap_socket* sock, const void* data, in packet_put_tail_l()
208 l2cap_socket* sock = socks; in btsock_l2cap_find_by_id_l() local
215 static void btsock_l2cap_free_l(l2cap_socket* sock) { in btsock_l2cap_free_l()
289 l2cap_socket* sock = (l2cap_socket*)osi_calloc(sizeof(*sock)); in btsock_l2cap_alloc_l() local
367 static inline bool send_app_psm_or_chan_l(l2cap_socket* sock) { in send_app_psm_or_chan_l()
398 l2cap_socket* sock; in on_srv_l2cap_listen_started() local
435 l2cap_socket* sock; in on_cl_l2cap_init() local
454 l2cap_socket* sock) { in on_srv_l2cap_psm_connect_l()
[all …]
/system/core/libcutils/
Dsockets_windows.cpp53 int socket_close(cutils_socket_t sock) { in socket_close()
57 int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms) { in socket_set_receive_timeout()
62 ssize_t socket_send_buffers(cutils_socket_t sock, in socket_send_buffers()
Dsockets_unix.cpp30 int socket_close(int sock) { in socket_close()
34 int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms) { in socket_set_receive_timeout()
41 ssize_t socket_send_buffers(cutils_socket_t sock, in socket_send_buffers()
Dsockets.cpp34 int socket_get_local_port(cutils_socket_t sock) { in socket_get_local_port()
Dsocket_inaddr_any_server_windows.cpp42 SOCKET sock = socket(AF_INET6, type, 0); in socket_inaddr_any_server() local
Dsocket_network_client_windows.cpp54 SOCKET sock = socket(address->ai_family, address->ai_socktype, in socket_network_client() local
/system/core/fastboot/
Dsocket.cpp34 Socket::Socket(cutils_socket_t sock) : sock_(sock) {} in Socket()
125 UdpSocket::UdpSocket(Type type, cutils_socket_t sock) : Socket(sock) { in UdpSocket()
170 explicit TcpSocket(cutils_socket_t sock) : Socket(sock) {} in TcpSocket()
249 cutils_socket_t sock = socket_network_client(host.c_str(), port, SOCK_DGRAM); in NewClient() local
254 cutils_socket_t sock = socket_network_client(host.c_str(), port, SOCK_STREAM); in NewClient() local
269 cutils_socket_t sock = socket_inaddr_any_server(port, SOCK_DGRAM); in NewServer() local
274 cutils_socket_t sock = socket_inaddr_any_server(port, SOCK_STREAM); in NewServer() local
Dsocket_mock.cpp120 std::unique_ptr<Socket> sock = std::move(events_.front().sock); in Accept() local
145 void SocketMock::AddAccept(std::unique_ptr<Socket> sock) { in AddAccept()
Dsocket_test.cpp64 static bool SendString(Socket* sock, const std::string& message) { in SendString()
70 static bool ReceiveString(Socket* sock, const std::string& message) { in ReceiveString()
175 std::unique_ptr<Socket> sock = Socket::NewServer(Socket::Protocol::kUdp, 0); in TEST() local
212 std::unique_ptr<Socket> sock = Socket::NewServer(Socket::Protocol::kTcp, 0); in TEST() local
Dtcp.cpp69 explicit TcpTransport(std::unique_ptr<Socket> sock) : socket_(std::move(sock)) {} in TcpTransport()
188 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error) { in Connect()
Dsocket_mock.h92 std::unique_ptr<Socket> sock; member
/system/netd/libnetdutils/
DSyscalls.cpp53 UniqueFd sock(::socket(domain, type, protocol)); in socket() local
60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname()
68 Status getsockopt(Fd sock, int level, int optname, void* optval, in getsockopt()
77 Status setsockopt(Fd sock, int level, int optname, const void* optval, in setsockopt()
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()
102 StatusOr<ifreq> ioctl(Fd sock, unsigned long request, ifreq* ifr) const override { in ioctl()
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()
DSocketOption.cpp29 Status enableSockopt(Fd sock, int level, int optname) { in enableSockopt()
35 Status enableTcpKeepAlives(Fd sock, unsigned idleTime, unsigned numProbes, unsigned probeInterval) { in enableTcpKeepAlives()
/system/core/liblog/
Dlogd_writer.cpp67 int sock = TEMP_FAILURE_RETRY(socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in logdOpen() local
103 int sock = atomic_exchange(&logdLoggerWrite.context.sock, negative_errno); in __logdClose() local
128 int sock; in logdWrite() local
/system/core/base/include/android-base/
Dcmsg.h67 ssize_t SendFileDescriptors(int sock, const void* data, size_t len, Args&&... sent_fds) { in SendFileDescriptors()
82 ssize_t ReceiveFileDescriptors(int sock, void* data, size_t len, Args&&... received_fds) { in ReceiveFileDescriptors()
/system/core/libmemunreachable/
DLeakPipe.cpp26 bool LeakPipe::SendFd(int sock, int fd) { in SendFd()
60 int LeakPipe::ReceiveFd(int sock) { in ReceiveFd()
/system/netd/server/
DNetlinkCommands.cpp35 int sock = socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, protocol); in openNetlinkSocket() local
46 int recvNetlinkAck(int sock) { in recvNetlinkAck()
89 int sock = openNetlinkSocket(NETLINK_ROUTE); in sendNetlinkRequest() local
118 int processNetlinkDump(int sock, const NetlinkDumpCallback& callback) { in processNetlinkDump()
/system/core/libstats/
Dstatsd_writer.c108 int sock = TEMP_FAILURE_RETRY(socket(PF_UNIX, flags, 0)); in statsdOpen() local
149 int sock = atomic_exchange(&statsdLoggerWrite.sock, negative_errno); in __statsdClose() local
177 int sock; in statsdWrite() local
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp34 int sock = socket(AF_INET6, SOCK_STREAM, 0); in checkNetworkExists() local
103 int sock = socket(ai->ai_family, SOCK_DGRAM, 0); in checkReachability() local
/system/core/adb/daemon/
Dreboot_service.cpp52 android::base::unique_fd sock(socket(AF_UNIX, SOCK_STREAM, 0)); in reboot_service() local
/system/core/lmkd/
Dliblmkd_utils.c34 int lmkd_register_proc(int sock, struct lmk_procprio *params) { in lmkd_register_proc()
/system/netd/tests/benchmarks/
Dconnect_benchmark.cpp112 int sock = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); in ipv4_loopback() local
169 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in ipv6_loopback() local
/system/bt/tools/bdtool/
Dbdtool.c211 const btsock_interface_t* sock = in main() local
245 const btsock_interface_t* sock = in main() local
/system/netd/tests/
Dbpf_base_test.cpp105 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() local
125 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() local

123