Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FdConnection Struct Reference

#include <transport.h>

Inheritance diagram for FdConnection:
Inheritance graph
[legend]
Collaboration diagram for FdConnection:
Collaboration graph
[legend]

Public Member Functions

 FdConnection (unique_fd fd)
 
 ~FdConnection ()
 
bool Read (apacket *packet) override final
 
bool Write (apacket *packet) override final
 
bool DoTlsHandshake (RSA *key, std::string *auth_key) override final
 
void Close () override
 
virtual void Reset () override final
 
- Public Member Functions inherited from BlockingConnection
 BlockingConnection ()=default
 
 BlockingConnection (const BlockingConnection &copy)=delete
 
 BlockingConnection (BlockingConnection &&move)=delete
 
virtual ~BlockingConnection ()=default
 
virtual bool Read (apacket *packet)=0
 
virtual bool Write (apacket *packet)=0
 
virtual bool DoTlsHandshake (RSA *key, std::string *auth_key=nullptr)=0
 
virtual void Close ()=0
 
virtual void Reset ()=0
 

Private Member Functions

bool DispatchRead (void *buf, size_t len)
 
bool DispatchWrite (void *buf, size_t len)
 

Private Attributes

unique_fd fd_
 
std::unique_ptr< adb::tls::TlsConnectiontls_
 

Constructor & Destructor Documentation

◆ FdConnection()

FdConnection::FdConnection ( unique_fd  fd)
explicit

◆ ~FdConnection()

FdConnection::~FdConnection ( )

Member Function Documentation

◆ Close()

void FdConnection::Close ( )
overridevirtual

Implements BlockingConnection.

◆ DispatchRead()

bool FdConnection::DispatchRead ( void *  buf,
size_t  len 
)
private

◆ DispatchWrite()

bool FdConnection::DispatchWrite ( void *  buf,
size_t  len 
)
private

◆ DoTlsHandshake()

bool FdConnection::DoTlsHandshake ( RSA *  key,
std::string *  auth_key 
)
finaloverridevirtual

Implements BlockingConnection.

◆ Read()

bool FdConnection::Read ( apacket packet)
finaloverridevirtual

Implements BlockingConnection.

◆ Reset()

virtual void FdConnection::Reset ( )
inlinefinaloverridevirtual

Implements BlockingConnection.

◆ Write()

bool FdConnection::Write ( apacket packet)
finaloverridevirtual

Implements BlockingConnection.

Member Data Documentation

◆ fd_

unique_fd FdConnection::fd_
private

◆ tls_

std::unique_ptr<adb::tls::TlsConnection> FdConnection::tls_
private

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