Home
last modified time | relevance | path

Searched refs:mPipeFd (Results 1 – 6 of 6) sorted by relevance

/device/generic/goldfish/network/netmgr/
Dcommander.cpp36 Commander::Commander() : mPipeFd(-1) { in Commander()
44 if (mPipeFd != -1) { in init()
58 if (mPipeFd != -1) { in getPollData()
59 fds->push_back(pollfd{mPipeFd, POLLIN, 0}); in getPollData()
78 int status = qemu_pipe_read(mPipeFd, &mReceiveBuffer[offset], kReceiveSpace); in onReadAvailable()
137 if (mPipeFd == -1) { in onTimeout()
144 mPipeFd = qemu_pipe_open_ns(NULL, kQemuPipeName, O_RDWR); in openPipe()
145 if (mPipeFd == -1) { in openPipe()
157 if (qemu_pipe_valid(mPipeFd)) { in closePipe()
158 qemu_pipe_close(mPipeFd); in closePipe()
[all …]
Dwifi_forwarder.cpp114 mPipeFd(-1) { in WifiForwarder()
122 if (mMonitorPcap || mPipeFd != -1) { in init()
126 mPipeFd = qemu_pipe_open_ns(NULL, kQemuPipeName, O_RDWR); in init()
127 if (mPipeFd == -1) { in init()
184 if (mPipeFd == -1) { in getPollData()
193 if (mPipeFd != -1) { in getPollData()
194 fds->push_back(pollfd{mPipeFd, POLLIN, 0}); in getPollData()
201 return mPipeFd == -1 ? mDeadline : Pollable::Timestamp::max(); in getTimeout()
205 if (fd == mPipeFd) { in onReadAvailable()
231 if (mPipeFd == -1) { in forwardFromPcap()
[all …]
Dcommander.h45 int mPipeFd; variable
Dwifi_forwarder.h52 int mPipeFd; variable
/device/generic/goldfish/network/wifi_forwarder/
Dremote_connection.cpp87 if (mPipeFd != -1) { in ~RemoteConnection()
88 ::close(mPipeFd); in ~RemoteConnection()
89 mPipeFd = -1; in ~RemoteConnection()
94 if (mPipeFd != -1) { in init()
98 mPipeFd = qemu_pipe_open_ns(NULL, kQemuPipeName, O_RDWR); in init()
99 if (mPipeFd == -1) { in init()
108 return mPipeFd == -1 ? mDeadline : Pollable::Timestamp::max(); in getTimeout()
126 int result = ::read(mPipeFd, in receive()
251 if (mPipeFd == -1) { in sendFrame()
276 ssize_t written = ::writev(mPipeFd, iov + current, count - current); in sendFrame()
[all …]
Dremote_connection.h43 int getFd() const { return mPipeFd; } in getFd()
59 int mPipeFd = -1; variable