1#ifndef SOCKET_RPC_CLIENT_H
2#define SOCKET_RPC_CLIENT_H
4#include <asyncbsdsocket/poller.h>
5#include <asyncbsdsocket/tcp_client.h>
6#include "../../helper/concurrent_queue.h"
7#include "./rpc_client.h"
21 static const size_t cBufferSize{256};
24 AsyncBsdSocketLib::Poller *
const mPoller;
25 AsyncBsdSocketLib::TcpClient mClient;
31 void Send(
const std::vector<uint8_t> &payload)
override;
42 AsyncBsdSocketLib::Poller *poller,
43 std::string ipAddress,
45 uint8_t protocolVersion,
46 uint8_t interfaceVersion = 1);
Thread-safe wrapper around STL queue using locking mechanism.
Definition: concurrent_queue.h:18
SOME/IP RPC abstract client.
Definition: rpc_client.h:20
TCP socket-based RPC client.
Definition: socket_rpc_client.h:19
void Send(const std::vector< uint8_t > &payload) override
Send a SOME/IP request to the RPC server.
Definition: socket_rpc_client.cpp:88
SocketRpcClient(AsyncBsdSocketLib::Poller *poller, std::string ipAddress, uint16_t port, uint8_t protocolVersion, uint8_t interfaceVersion=1)
Constructor.
Definition: socket_rpc_client.cpp:14