Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::someip::pubsub::SomeIpPubSubServer Class Reference

SOME/IP publish/subscribe server. More...

#include <someip_pubsub_server.h>

Public Member Functions

 SomeIpPubSubServer (helper::NetworkLayer< sd::SomeIpSdMessage > *networkLayer, uint16_t serviceId, uint16_t instanceId, uint8_t majorVersion, uint16_t eventgroupId, helper::Ipv4Address ipAddress, uint16_t port)
 Constructor. More...
 
void Start ()
 Start the server.
 
helper::PubSubState GetState () const noexcept
 Get the current server state. More...
 
void Stop ()
 Stop the server.
 

Detailed Description

SOME/IP publish/subscribe server.

Constructor & Destructor Documentation

◆ SomeIpPubSubServer()

ara::com::someip::pubsub::SomeIpPubSubServer::SomeIpPubSubServer ( helper::NetworkLayer< sd::SomeIpSdMessage > *  networkLayer,
uint16_t  serviceId,
uint16_t  instanceId,
uint8_t  majorVersion,
uint16_t  eventgroupId,
helper::Ipv4Address  ipAddress,
uint16_t  port 
)

Constructor.

Parameters
networkLayerNetwork communication abstraction layer
serviceIdService ID
instanceIdService instance ID
majorVersionService major version
eventgroupIdService event-group ID
ipAddressMulticast IP address that clients should listen to for receiving events
portMulticast port number that clients should listen to for receiving events

Member Function Documentation

◆ GetState()

helper::PubSubState ara::com::someip::pubsub::SomeIpPubSubServer::GetState ( ) const
noexcept

Get the current server state.

Returns
Server machine state