Woman, Life, Freedom


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

SOME/IP service discovery server. More...

#include <someip_sd_server.h>

Inheritance diagram for ara::com::someip::sd::SomeIpSdServer:
ara::com::someip::sd::SomeIpSdAgent< helper::SdServerState >

Public Member Functions

 SomeIpSdServer (helper::NetworkLayer< SomeIpSdMessage > *networkLayer, uint16_t serviceId, uint16_t instanceId, uint8_t majorVersion, uint32_t minorVersion, helper::Ipv4Address ipAddress, uint16_t port, int initialDelayMin, int initialDelayMax, int repetitionBaseDelay=30, int cycleOfferDelay=1000, uint32_t repetitionMax=3)
 Constructor. More...
 
- Public Member Functions inherited from ara::com::someip::sd::SomeIpSdAgent< helper::SdServerState >
 SomeIpSdAgent (helper::NetworkLayer< SomeIpSdMessage > *networkLayer)
 Constructor. More...
 
void Start ()
 Start the service discovery agent.
 
helper::SdServerState GetState () const noexcept
 Get the current server state. More...
 
void Join ()
 Join to the timer's thread.
 
void Stop ()
 Stop the service discovery agent. More...
 

Protected Member Functions

void StartAgent (helper::SdServerState state) override
 Start the service discovery agent. More...
 
void StopAgent () override
 Stop the service discovery agent. More...
 

Additional Inherited Members

- Protected Attributes inherited from ara::com::someip::sd::SomeIpSdAgent< helper::SdServerState >
helper::FiniteStateMachine< helper::SdServerStateStateMachine
 Agent's FSM.
 
std::future< void > Future
 Agent running state future object.
 
helper::NetworkLayer< SomeIpSdMessage > * CommunicationLayer
 Network communication abstraction layer.
 

Detailed Description

SOME/IP service discovery server.

Constructor & Destructor Documentation

◆ SomeIpSdServer()

ara::com::someip::sd::SomeIpSdServer::SomeIpSdServer ( helper::NetworkLayer< SomeIpSdMessage > *  networkLayer,
uint16_t  serviceId,
uint16_t  instanceId,
uint8_t  majorVersion,
uint32_t  minorVersion,
helper::Ipv4Address  ipAddress,
uint16_t  port,
int  initialDelayMin,
int  initialDelayMax,
int  repetitionBaseDelay = 30,
int  cycleOfferDelay = 1000,
uint32_t  repetitionMax = 3 
)

Constructor.

Parameters
networkLayerNetwork communication abstraction layer
serviceIdService ID
instanceIdService instance ID
majorVersionService major version
minorVersionService minor version
ipAddressService unicast endpoint IP Address
portService unicast endpoint TCP port number
initialDelayMinMinimum initial delay
initialDelayMaxMaximum initial delay
repetitionBaseDelayRepetition phase delay
cycleOfferDelayCycle offer delay in the main phase
repetitionMaxMaximum message count in the repetition phase

Member Function Documentation

◆ StartAgent()

void ara::com::someip::sd::SomeIpSdServer::StartAgent ( helper::SdServerState  state)
overrideprotectedvirtual

Start the service discovery agent.

Parameters
stateCurrent FSM state before start

Implements ara::com::someip::sd::SomeIpSdAgent< helper::SdServerState >.

◆ StopAgent()

void ara::com::someip::sd::SomeIpSdServer::StopAgent ( )
overrideprotectedvirtual

Stop the service discovery agent.

Parameters
stateCurrent FSM state before stop

Implements ara::com::someip::sd::SomeIpSdAgent< helper::SdServerState >.