Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::socket_proxy::TcpClient Class Reference

#include <client.h>

Inheritance diagram for cuttlefish::socket_proxy::TcpClient:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::socket_proxy::TcpClient:
Collaboration graph
[legend]

Public Member Functions

 TcpClient (std::string host, int port, std::chrono::seconds timeout=std::chrono::seconds(0))
 
SharedFD Start () override
 
std::string Describe () const override
 
- Public Member Functions inherited from cuttlefish::socket_proxy::Client
virtual SharedFD Start ()=0
 
virtual std::string Describe () const =0
 
virtual ~Client ()=default
 

Private Attributes

std::string host_
 
int port_
 
std::chrono::seconds timeout_
 
int last_failure_reason_ = 0
 

Constructor & Destructor Documentation

◆ TcpClient()

cuttlefish::socket_proxy::TcpClient::TcpClient ( std::string  host,
int  port,
std::chrono::seconds  timeout = std::chrono::seconds(0) 
)

Member Function Documentation

◆ Describe()

std::string cuttlefish::socket_proxy::TcpClient::Describe ( ) const
overridevirtual

◆ Start()

SharedFD cuttlefish::socket_proxy::TcpClient::Start ( )
overridevirtual

Member Data Documentation

◆ host_

std::string cuttlefish::socket_proxy::TcpClient::host_
private

◆ last_failure_reason_

int cuttlefish::socket_proxy::TcpClient::last_failure_reason_ = 0
private

◆ port_

int cuttlefish::socket_proxy::TcpClient::port_
private

◆ timeout_

std::chrono::seconds cuttlefish::socket_proxy::TcpClient::timeout_
private

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