MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
51 virtual void SendMessage(std::vector<std::uint8_t>&& message) = 0;
52 virtual void SendMessage(
const std::vector<std::uint8_t>& message) = 0;
58 virtual std::optional<std::vector<std::uint8_t>>
ReceiveMessage() = 0;
std::size_t number_of_messages_sent
Definition: transport.h:33
virtual void ShutdownSend()=0
virtual void Shutdown()=0
Definition: transport.h:41
std::size_t number_of_messages_received
Definition: transport.h:34
virtual ~Transport()=default
void ResetStatistics()
Definition: transport.cpp:29
virtual std::optional< std::vector< std::uint8_t > > ReceiveMessage()=0
std::size_t number_of_bytes_received
Definition: transport.h:36
virtual void SendMessage(std::vector< std::uint8_t > &&message)=0
const TransportStatistics & GetStatistics() const
Definition: transport.cpp:27
Definition: transport.h:32
TransportStatistics statistics_
Definition: transport.h:70
std::size_t number_of_bytes_sent
Definition: transport.h:35
virtual bool Available() const =0