SOME/IP service discovery server. More...
#include <someip_sd_server.h>
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::SdServerState > | StateMachine |
Agent's FSM. | |
std::future< void > | Future |
Agent running state future object. | |
helper::NetworkLayer< SomeIpSdMessage > * | CommunicationLayer |
Network communication abstraction layer. | |
SOME/IP service discovery server.
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.
networkLayer | Network communication abstraction layer |
serviceId | Service ID |
instanceId | Service instance ID |
majorVersion | Service major version |
minorVersion | Service minor version |
ipAddress | Service unicast endpoint IP Address |
port | Service unicast endpoint TCP port number |
initialDelayMin | Minimum initial delay |
initialDelayMax | Maximum initial delay |
repetitionBaseDelay | Repetition phase delay |
cycleOfferDelay | Cycle offer delay in the main phase |
repetitionMax | Maximum message count in the repetition phase |
|
overrideprotectedvirtual |
Start the service discovery agent.
state | Current FSM state before start |
Implements ara::com::someip::sd::SomeIpSdAgent< helper::SdServerState >.
|
overrideprotectedvirtual |
Stop the service discovery agent.
state | Current FSM state before stop |
Implements ara::com::someip::sd::SomeIpSdAgent< helper::SdServerState >.