Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair Class Reference
Collaboration diagram for cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair:
Collaboration graph
[legend]

Public Member Functions

 ProxyPair ()
 
 ProxyPair (ProxyPair &&other)
 
 ~ProxyPair ()
 
void Start (SharedFD from, SharedFD to)
 
bool Running ()
 

Private Member Functions

void Forward (const std::string &label, SharedFD from, SharedFD to, SharedFD stop, std::atomic< bool > &running)
 

Private Attributes

bool started_ = false
 
SharedFD stop_fd_
 
std::atomic< bool > c2t_running_ = false
 
std::atomic< bool > t2c_running_ = false
 
std::thread c2t_
 
std::thread t2c_
 

Constructor & Destructor Documentation

◆ ProxyPair() [1/2]

cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::ProxyPair ( )
inline

◆ ProxyPair() [2/2]

cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::ProxyPair ( ProxyPair &&  other)
inline

◆ ~ProxyPair()

cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::~ProxyPair ( )
inline

Member Function Documentation

◆ Forward()

void cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::Forward ( const std::string &  label,
SharedFD  from,
SharedFD  to,
SharedFD  stop,
std::atomic< bool > &  running 
)
inlineprivate

◆ Running()

bool cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::Running ( )
inline

◆ Start()

void cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::Start ( SharedFD  from,
SharedFD  to 
)
inline

Member Data Documentation

◆ c2t_

std::thread cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::c2t_
private

◆ c2t_running_

std::atomic<bool> cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::c2t_running_ = false
private

◆ started_

bool cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::started_ = false
private

◆ stop_fd_

SharedFD cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::stop_fd_
private

◆ t2c_

std::thread cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::t2c_
private

◆ t2c_running_

std::atomic<bool> cuttlefish::anonymous_namespace{socket2socket_proxy.cpp}::ProxyPair::t2c_running_ = false
private

The documentation for this class was generated from the following file: