MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
36 static std::pair<std::unique_ptr<DummyTransport>, std::unique_ptr<DummyTransport>>
40 void SendMessage(std::vector<std::uint8_t>&& message)
override;
41 void SendMessage(
const std::vector<std::uint8_t>& message)
override;
47 std::optional<std::vector<std::uint8_t>>
ReceiveMessage()
override;
58 std::shared_ptr<MessageQueueType> receive_queue) noexcept;
60 std::shared_ptr<MessageQueueType> send_queue_;
61 std::shared_ptr<MessageQueueType> receive_queue_;
void SendMessage(std::vector< std::uint8_t > &&message) override
Definition: dummy_transport.cpp:45
std::size_t number_of_messages_sent
Definition: transport.h:33
Definition: dummy_transport.h:30
void Shutdown() override
Definition: dummy_transport.cpp:75
std::optional< std::vector< std::uint8_t > > ReceiveMessage() override
Definition: dummy_transport.cpp:61
DummyTransport(DummyTransport &&other)
Definition: dummy_transport.cpp:27
Definition: transport.h:41
std::size_t number_of_messages_received
Definition: transport.h:34
static std::pair< std::unique_ptr< DummyTransport >, std::unique_ptr< DummyTransport > > MakeTransportPair()
Definition: dummy_transport.cpp:37
bool Available() const override
Definition: dummy_transport.cpp:59
std::size_t number_of_bytes_received
Definition: transport.h:36
Definition: synchronized_queue.h:57
void ShutdownSend() override
Definition: dummy_transport.cpp:73
TransportStatistics statistics_
Definition: transport.h:70
std::size_t number_of_bytes_sent
Definition: transport.h:35