MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | Public Attributes | List of all members
encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation Struct Reference
Collaboration diagram for encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation:
Collaboration graph
[legend]

Public Member Functions

std::map< std::size_t, tcp::socket > accept_task ()
 
tcp::socket connect_task (std::size_t other_id, std::string host, std::uint16_t port)
 

Public Attributes

std::size_t my_id_
 
std::size_t number_of_parties_
 
int number_of_connection_retries_ = 10
 
decltype(1s) retry_delay_ = 3s
 
boost::asio::ip::address bind_address_
 
std::uint16_t bind_port_
 
std::shared_ptr< boost::asio::io_context > io_context_
 
std::map< std::size_t, tcp::socket > sockets_
 

Member Function Documentation

◆ accept_task()

std::map< std::size_t, tcp::socket > encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::accept_task ( )

◆ connect_task()

tcp::socket encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::connect_task ( std::size_t  other_id,
std::string  host,
std::uint16_t  port 
)
Here is the call graph for this function:

Member Data Documentation

◆ bind_address_

boost::asio::ip::address encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::bind_address_

◆ bind_port_

std::uint16_t encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::bind_port_

◆ io_context_

std::shared_ptr<boost::asio::io_context> encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::io_context_

◆ my_id_

std::size_t encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::my_id_

◆ number_of_connection_retries_

int encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::number_of_connection_retries_ = 10

◆ number_of_parties_

std::size_t encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::number_of_parties_

◆ retry_delay_

decltype(1s) encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::retry_delay_ = 3s

◆ sockets_

std::map<std::size_t, tcp::socket> encrypto::motion::communication::TcpSetupHelper::TcpSetupImplementation::sockets_

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