1#ifndef SOMEIP_PUBSUB_CLIENT
2#define SOMEIP_PUBSUB_CLIENT
4#include <condition_variable>
5#include "../../entry/eventgroup_entry.h"
6#include "../../helper/network_layer.h"
7#include "../../helper/concurrent_queue.h"
8#include "../sd/someip_sd_message.h"
23 std::mutex mSubscriptionMutex;
24 std::unique_lock<std::mutex> mSubscriptionLock;
25 std::condition_variable mSubscriptionConditionVariable;
52 uint16_t eventgroupId);
63 uint16_t eventgroupId);
Thread-safe wrapper around STL queue using locking mechanism.
Definition: concurrent_queue.h:18
Network communication abstraction layer.
Definition: network_layer.h:18
SOME/IP publish/subscribe client.
Definition: someip_pubsub_client.h:20
bool TryGetProcessedSubscription(int duration, sd::SomeIpSdMessage &message)
Try to wait unitl the server processes a subscription request.
Definition: someip_pubsub_client.cpp:75
void Unsubscribe(uint16_t serviceId, uint16_t instanceId, uint8_t majorVersion, uint16_t eventgroupId)
Unsubscribe from a subscribed event-group.
Definition: someip_pubsub_client.cpp:59
void Subscribe(uint16_t serviceId, uint16_t instanceId, uint8_t majorVersion, uint16_t eventgroupId)
Subscribe to an event-group.
Definition: someip_pubsub_client.cpp:43
SOME/IP service discovery message.
Definition: someip_sd_message.h:18