Home
last modified time | relevance | path

Searched refs:client_socket (Results 1 – 4 of 4) sorted by relevance

/system/core/liblog/tests/
Dlogd_writer_test.cpp57 auto client_socket = in TEST()
59 ASSERT_TRUE(client_socket.ok()); in TEST()
64 TEMP_FAILURE_RETRY(connect(client_socket, reinterpret_cast<sockaddr*>(&client_sockaddr), in TEST()
70 ASSERT_EQ(smoke_len, TEMP_FAILURE_RETRY(write(client_socket, kSmoke, sizeof(kSmoke)))); in TEST()
80 ASSERT_EQ(-1, TEMP_FAILURE_RETRY(write(client_socket, kSmoke, sizeof(kSmoke)))); in TEST()
88 TEMP_FAILURE_RETRY(connect(client_socket, reinterpret_cast<sockaddr*>(&client_sockaddr), in TEST()
93 ASSERT_EQ(smoke_len, TEMP_FAILURE_RETRY(write(client_socket, kSmoke, sizeof(kSmoke)))); in TEST()
/system/bt/hci/src/
Dbtsnoop_net.cc124 int client_socket; in listen_fn_() local
125 OSI_NO_INTR(client_socket = accept(listen_socket_, NULL, NULL)); in listen_fn_()
126 if (client_socket == -1) { in listen_fn_()
138 client_socket_ = client_socket; in listen_fn_()
/system/nvram/hal/
Dfake_nvram.cpp162 int client_socket = accept(control_socket_fd, NULL, 0); in ProcessMessages() local
163 if (client_socket < 0) { in ProcessMessages()
170 poll_fds[poll_fds_count].fd = client_socket; in ProcessMessages()
177 if (close(client_socket)) { in ProcessMessages()
/system/bt/service/ipc/
Dipc_handler_linux.cc159 int client_socket = accept4(socket_.get(), nullptr, nullptr, SOCK_NONBLOCK); in StartListeningOnThread() local
160 if (client_socket < 0) { in StartListeningOnThread()
165 LOG(INFO) << "Established client connection: fd=" << client_socket; in StartListeningOnThread()
167 LinuxIPCHost ipc_host(client_socket, adapter()); in StartListeningOnThread()