Home
last modified time | relevance | path

Searched refs:sock_ (Results 1 – 5 of 5) 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.h114 cutils_socket_t sock_ = INVALID_SOCKET; variable
/system/connectivity/shill/net/
Dnetlink_manager.cc211 sock_.reset(); in Reset()
306 if (!sock_) { in Init()
307 sock_.reset(new NetlinkSocket); in Init()
308 if (!sock_) { in Init()
313 if (!sock_->Init()) { in Init()
330 return (sock_ ? sock_->file_descriptor() : Sockets::kInvalidFileDescriptor); in file_descriptor()
339 if (!sock_) { in GetFamily()
382 int result = sock_->sockets()->Select(file_descriptor() + 1, in GetFamily()
399 sock_->RecvMessage(&received); in GetFamily()
559 if (!sock_->SendMessage(pending_message.message_string)) { in SendMessageInternal()
[all …]
Dnetlink_manager.h442 std::unique_ptr<NetlinkSocket> sock_;
Dnetlink_manager_unittest.cc137 netlink_manager_->sock_.reset(netlink_socket_); // Passes ownership. in NetlinkManagerTest()