SOME/IP service discovery multicast network layer. More...
#include <sd_network_layer.h>
Public Member Functions | |
SdNetworkLayer (AsyncBsdSocketLib::Poller *poller, std::string nicIpAddress, std::string multicastGroup, uint16_t port) | |
Constructor. More... | |
void | Send (const SomeIpSdMessage &message) override |
Public Member Functions inherited from ara::com::helper::NetworkLayer< SomeIpSdMessage > | |
virtual void | Send (const SomeIpSdMessage &message)=0 |
Send a message through the network. More... | |
void | SetReceiver (void *object, std::function< void(SomeIpSdMessage)> receiver) |
Set a receiver callback. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ara::com::helper::NetworkLayer< SomeIpSdMessage > | |
void | FireReceiverCallbacks (const std::vector< uint8_t > &payload) |
Fire all the set receiver callaback. More... | |
SOME/IP service discovery multicast network layer.
ara::com::someip::sd::SdNetworkLayer::SdNetworkLayer | ( | AsyncBsdSocketLib::Poller * | poller, |
std::string | nicIpAddress, | ||
std::string | multicastGroup, | ||
uint16_t | port | ||
) |
Constructor.
poller | BSD sockets poller |
nicIpAddress | Network interface controller IPv4 address |
multicastGroup | Multicast group IPv4 address |
port | Multicast UDP port number |
std::runtime_error | Throws when the UDP socket configuration failed |