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()
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()
163 return TEMP_FAILURE_RETRY(recvfrom(sock_, reinterpret_cast<char*>(data), length, 0, in Receive()
185 TEMP_FAILURE_RETRY(send(sock_, reinterpret_cast<const char*>(data), length, 0)); in Send()
199 socket_send_buffers_function_(sock_, buffers.data(), buffers.size())); in Send()
235 return TEMP_FAILURE_RETRY(recv(sock_, reinterpret_cast<char*>(data), length, 0)); in Receive()
239 cutils_socket_t handler = accept(sock_, nullptr, nullptr); in Accept()