|
| Network (const std::function< void(const Message &)> &callback) |
|
| Network (const std::string &ip, const std::function< void(const Message &)> &callback) |
|
| Network (const Network &)=delete |
|
Network & | operator= (const Network &)=delete |
|
| Network (const Network &&)=delete |
|
Network & | operator= (Network &&)=delete |
|
void | send (const Message &msg) |
|
uint16_t | getPort () const |
|
std::string | getIP () const |
|
std::string | getConnectionString () const |
|
◆ Network()
solanet::Network::Network |
( |
const std::function< void(const Message &)> & |
callback | ) |
|
|
explicit |
Create network interface
- Parameters
-
callback | function, which is called asynchronously when a new message is received |
listening_port | UDP port to listen on |
◆ send()
void solanet::Network::send |
( |
const Message & |
msg | ) |
|
The documentation for this class was generated from the following files:
- solanet/include/solanet/network_udp/network_udp.h
- daisi/src/solanet-ns3/ns3SolaNet.cpp
- solanet/src/network_udp/network_udp.cpp