Home
last modified time | relevance | path

Searched refs:sock_ (Results 1 – 2 of 2) sorted by relevance

/system/core/fastboot/
Dsocket.cpp34 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()
70 return socket_get_local_port(sock_); in GetLocalPort()
87 if (sock_ == INVALID_SOCKET) { in WaitForRecv()
93 FD_SET(sock_, &read_set); in WaitForRecv()
99 int result = TEMP_FAILURE_RETRY(select(sock_ + 1, &read_set, nullptr, nullptr, &timeout)); in WaitForRecv()
136 return TEMP_FAILURE_RETRY(sendto(sock_, reinterpret_cast<const char*>(data), length, 0, in Send()
148 sock_, buffers.data(), buffers.size())) == static_cast<ssize_t>(total_length); in Send()
[all …]
Dsocket.h113 cutils_socket_t sock_ = INVALID_SOCKET; variable