SOLA
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
solanet::Network Class Reference

Classes

class  Impl
 

Public Member Functions

 Network (const std::function< void(const Message &)> &callback)
 
 Network (const std::string &ip, const std::function< void(const Message &)> &callback)
 
 Network (const Network &)=delete
 
Networkoperator= (const Network &)=delete
 
 Network (const Network &&)=delete
 
Networkoperator= (Network &&)=delete
 
void send (const Message &msg)
 
uint16_t getPort () const
 
std::string getIP () const
 
std::string getConnectionString () const
 

Constructor & Destructor Documentation

◆ Network()

solanet::Network::Network ( const std::function< void(const Message &)> &  callback)
explicit

Create network interface

Parameters
callbackfunction, which is called asynchronously when a new message is received
listening_portUDP port to listen on

Member Function Documentation

◆ send()

void solanet::Network::send ( const Message msg)

Send message

Parameters
msgmessage to send

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