Searched refs:sock_ (Results 1 – 3 of 3) sorted by relevance
/system/core/fastboot/ |
D | socket.cpp | 34 Socket::Socket(cutils_socket_t sock) : sock_(sock) {} in Socket() 43 if (sock_ != INVALID_SOCKET) { in Close() 44 ret = socket_close(sock_); in Close() 45 sock_ = INVALID_SOCKET; in Close() 72 return socket_get_local_port(sock_); in GetLocalPort() 89 if (sock_ == INVALID_SOCKET) { in WaitForRecv() 95 FD_SET(sock_, &read_set); in WaitForRecv() 101 int result = TEMP_FAILURE_RETRY(select(sock_ + 1, &read_set, nullptr, nullptr, &timeout)); in WaitForRecv() 138 return TEMP_FAILURE_RETRY(sendto(sock_, reinterpret_cast<const char*>(data), length, 0, in Send() 150 sock_, buffers.data(), buffers.size())) == static_cast<ssize_t>(total_length); in Send() [all …]
|
D | socket.h | 113 cutils_socket_t sock_ = INVALID_SOCKET; variable
|
/system/logging/liblog/ |
D | logd_writer.cpp | 52 void Reconnect() { LogdConnect(sock_); } in Reconnect() 58 if (sock_ != kUninitialized) { in Close() 59 close(sock_); in Close() 61 sock_ = kUninitialized; in Close() 66 return sock_; in sock() 87 if (sock_ != kUninitialized) { in GetSocket() 103 if (!sock_.compare_exchange_strong(uninitialized_value, new_socket)) { in GetSocket() 110 atomic_int sock_ = kUninitialized; member in LogdSocket
|