Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
socket_rpc_server.h
1#ifndef SOCKET_RPC_SERVER_H
2#define SOCKET_RPC_SERVER_H
3
4#include <asyncbsdsocket/poller.h>
5#include "../../helper/concurrent_queue.h"
6#include "./rpc_server.h"
7
8namespace ara
9{
10 namespace com
11 {
12 namespace someip
13 {
14 namespace rpc
15 {
18 {
19 private:
20 static const size_t cBufferSize{256};
21
23 AsyncBsdSocketLib::Poller *const mPoller;
24 AsyncBsdSocketLib::TcpListener mServer;
25
26 void onAccept();
27 void onReceive();
28 void onSend();
29
30 public:
39 AsyncBsdSocketLib::Poller *poller,
40 std::string ipAddress,
41 uint16_t port,
42 uint8_t protocolVersion,
43 uint8_t interfaceVersion = 1);
44
45 virtual ~SocketRpcServer() override;
46 };
47 }
48 }
49 }
50}
51
52#endif
Thread-safe wrapper around STL queue using locking mechanism.
Definition: concurrent_queue.h:18
SOME/IP RPC server.
Definition: rpc_server.h:23
TCP socket-based RPC server.
Definition: socket_rpc_server.h:18
SocketRpcServer(AsyncBsdSocketLib::Poller *poller, std::string ipAddress, uint16_t port, uint8_t protocolVersion, uint8_t interfaceVersion=1)
Constructor.
Definition: socket_rpc_server.cpp:14