SOME/IP publish/subscribe client. More...
#include <someip_pubsub_client.h>
Public Member Functions | |
| SomeIpPubSubClient (helper::NetworkLayer< sd::SomeIpSdMessage > *networkLayer, uint8_t counter) | |
| Constructor. More... | |
| void | Subscribe (uint16_t serviceId, uint16_t instanceId, uint8_t majorVersion, uint16_t eventgroupId) |
| Subscribe to an event-group. More... | |
| void | Unsubscribe (uint16_t serviceId, uint16_t instanceId, uint8_t majorVersion, uint16_t eventgroupId) |
| Unsubscribe from a subscribed event-group. More... | |
| bool | TryGetProcessedSubscription (int duration, sd::SomeIpSdMessage &message) |
| Try to wait unitl the server processes a subscription request. More... | |
SOME/IP publish/subscribe client.
| ara::com::someip::pubsub::SomeIpPubSubClient::SomeIpPubSubClient | ( | helper::NetworkLayer< sd::SomeIpSdMessage > * | networkLayer, |
| uint8_t | counter | ||
| ) |
Constructor.
| networkLayer | Network communication abstraction layer |
| counter | Counter to make the client distinguishable among other subscribers |
| void ara::com::someip::pubsub::SomeIpPubSubClient::Subscribe | ( | uint16_t | serviceId, |
| uint16_t | instanceId, | ||
| uint8_t | majorVersion, | ||
| uint16_t | eventgroupId | ||
| ) |
Subscribe to an event-group.
| serviceId | Service in interest ID |
| instanceId | Service in interest instance ID |
| majorVersion | Service in interest major version |
| eventgroupId | Event-group in interest ID |
| bool ara::com::someip::pubsub::SomeIpPubSubClient::TryGetProcessedSubscription | ( | int | duration, |
| sd::SomeIpSdMessage & | message | ||
| ) |
Try to wait unitl the server processes a subscription request.
| duration | Waiting timeout in milliseconds |
| message | The first processed subscription message in the buffer |
| void ara::com::someip::pubsub::SomeIpPubSubClient::Unsubscribe | ( | uint16_t | serviceId, |
| uint16_t | instanceId, | ||
| uint8_t | majorVersion, | ||
| uint16_t | eventgroupId | ||
| ) |
Unsubscribe from a subscribed event-group.
| serviceId | Service in interest ID |
| instanceId | Service in interest instance ID |
| majorVersion | Service in interest major version |
| eventgroupId | Event-group in interest ID |