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

#include <sync_handler.h>

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

Public Member Functions

 SynchronizationHandler (std::size_t my_id, std::size_t number_of_parties, std::shared_ptr< Logger > logger)
 
std::uint64_t IncrementMySynchronizationState ()
 
void ReceivedMessage (std::size_t party_id, std::vector< std::uint8_t > &&message) override
 
void Wait ()
 
std::mutex & GetMutex ()
 
- Public Member Functions inherited from encrypto::motion::communication::MessageHandler
virtual ~MessageHandler ()=default
 

Constructor & Destructor Documentation

◆ SynchronizationHandler()

encrypto::motion::communication::SynchronizationHandler::SynchronizationHandler ( std::size_t  my_id,
std::size_t  number_of_parties,
std::shared_ptr< Logger logger 
)
inline

Member Function Documentation

◆ GetMutex()

std::mutex& encrypto::motion::communication::SynchronizationHandler::GetMutex ( )
inline

◆ IncrementMySynchronizationState()

std::uint64_t encrypto::motion::communication::SynchronizationHandler::IncrementMySynchronizationState ( )
inline

◆ ReceivedMessage()

void encrypto::motion::communication::SynchronizationHandler::ReceivedMessage ( std::size_t  party_id,
std::vector< std::uint8_t > &&  message 
)
overridevirtual

Implements encrypto::motion::communication::MessageHandler.

Here is the call graph for this function:

◆ Wait()

void encrypto::motion::communication::SynchronizationHandler::Wait ( )

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