Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::someip::sd::SdNetworkLayer Class Reference

SOME/IP service discovery multicast network layer. More...

#include <sd_network_layer.h>

Inheritance diagram for ara::com::someip::sd::SdNetworkLayer:
ara::com::helper::NetworkLayer< SomeIpSdMessage >

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...
 

Detailed Description

SOME/IP service discovery multicast network layer.

Constructor & Destructor Documentation

◆ SdNetworkLayer()

ara::com::someip::sd::SdNetworkLayer::SdNetworkLayer ( AsyncBsdSocketLib::Poller *  poller,
std::string  nicIpAddress,
std::string  multicastGroup,
uint16_t  port 
)

Constructor.

Parameters
pollerBSD sockets poller
nicIpAddressNetwork interface controller IPv4 address
multicastGroupMulticast group IPv4 address
portMulticast UDP port number
Exceptions
std::runtime_errorThrows when the UDP socket configuration failed