Lines Matching refs:sock_
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()
165 return TEMP_FAILURE_RETRY(recvfrom(sock_, reinterpret_cast<char*>(data), length, 0, in Receive()
187 TEMP_FAILURE_RETRY(send(sock_, reinterpret_cast<const char*>(data), length, 0)); in Send()
201 socket_send_buffers_function_(sock_, buffers.data(), buffers.size())); in Send()
237 return TEMP_FAILURE_RETRY(recv(sock_, reinterpret_cast<char*>(data), length, 0)); in Receive()
241 cutils_socket_t handler = accept(sock_, nullptr, nullptr); in Accept()