Service#
agnocast::Service<ServiceT>#
Agnocast service server. The callback signature is void(const ipc_shared_ptr
Example:
```cpp
using SrvT = example_interfaces::srv::AddTwoInts;
using RequestT = agnocast::Service
auto service = agnocast::create_service
RequestT#
cpp
struct RequestT
Request type extending ServiceT::Request with internal metadata. Received in the service callback's first argument.
| Template Parameter | Description |
|---|---|
RequestT |
Request message type (derived from ServiceT::Request). |
ResponseT#
cpp
struct ResponseT
Response type extending ServiceT::Response with internal metadata. Populated in the service callback's second argument.
| Template Parameter | Description |
|---|---|
ResponseT |
Response message type (derived from ServiceT::Response). |