MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | List of all members
encrypto::motion::communication::TcpTransport Class Reference

#include <tcp_transport.h>

Inheritance diagram for encrypto::motion::communication::TcpTransport:
Inheritance graph
[legend]
Collaboration diagram for encrypto::motion::communication::TcpTransport:
Collaboration graph
[legend]

Public Member Functions

 TcpTransport (std::unique_ptr< detail::TcpTransportImplementation > implementation)
 
 TcpTransport (TcpTransport &&other)
 
 ~TcpTransport ()
 
void SendMessage (std::vector< std::uint8_t > &&message) override
 
void SendMessage (const std::vector< std::uint8_t > &message) override
 
bool Available () const override
 
std::optional< std::vector< std::uint8_t > > ReceiveMessage () override
 
void ShutdownSend () override
 
void Shutdown () override
 
- Public Member Functions inherited from encrypto::motion::communication::Transport
 Transport ()=default
 
 Transport (Transport &&other)=default
 
virtual ~Transport ()=default
 
const TransportStatisticsGetStatistics () const
 
void ResetStatistics ()
 

Additional Inherited Members

- Protected Attributes inherited from encrypto::motion::communication::Transport
TransportStatistics statistics_
 

Constructor & Destructor Documentation

◆ TcpTransport() [1/2]

encrypto::motion::communication::TcpTransport::TcpTransport ( std::unique_ptr< detail::TcpTransportImplementation implementation)

◆ TcpTransport() [2/2]

encrypto::motion::communication::TcpTransport::TcpTransport ( TcpTransport &&  other)

◆ ~TcpTransport()

encrypto::motion::communication::TcpTransport::~TcpTransport ( )
default

Member Function Documentation

◆ Available()

bool encrypto::motion::communication::TcpTransport::Available ( ) const
overridevirtual

◆ ReceiveMessage()

std::optional< std::vector< std::uint8_t > > encrypto::motion::communication::TcpTransport::ReceiveMessage ( )
overridevirtual

Implements encrypto::motion::communication::Transport.

Here is the call graph for this function:

◆ SendMessage() [1/2]

void encrypto::motion::communication::TcpTransport::SendMessage ( const std::vector< std::uint8_t > &  message)
overridevirtual

Implements encrypto::motion::communication::Transport.

Here is the call graph for this function:

◆ SendMessage() [2/2]

void encrypto::motion::communication::TcpTransport::SendMessage ( std::vector< std::uint8_t > &&  message)
overridevirtual

◆ Shutdown()

void encrypto::motion::communication::TcpTransport::Shutdown ( )
overridevirtual

◆ ShutdownSend()

void encrypto::motion::communication::TcpTransport::ShutdownSend ( )
overridevirtual

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