17 #ifndef IOX_BINDING_C_SERVER_H
18 #define IOX_BINDING_C_SERVER_H
20 #include "iceoryx_binding_c/config.h"
21 #include "iceoryx_binding_c/enums.h"
22 #include "iceoryx_binding_c/service_description.h"
23 #include "iceoryx_binding_c/types.h"
26 typedef CLASS UntypedServer* iox_server_t;
35 char nodeName[IOX_CONFIG_NODE_NAME_SIZE];
73 const char*
const service,
74 const char*
const instance,
75 const char*
const event,
80 void iox_server_deinit(iox_server_t
const self);
87 ENUM iox_ServerRequestResult iox_server_take_request(iox_server_t
const self,
const void**
const payload);
92 void iox_server_release_request(iox_server_t
const self,
const void*
const payload);
103 ENUM iox_AllocationResult iox_server_loan_response(iox_server_t
const self,
104 const void*
const requestPayload,
105 void**
const payload,
106 const uint32_t payloadSize);
116 ENUM iox_AllocationResult iox_server_loan_aligned_response(iox_server_t
const self,
117 const void*
const requestPayload,
118 void**
const payload,
119 const uint32_t payloadSize,
120 const uint32_t payloadAlignment);
127 ENUM iox_ServerSendResult iox_server_send(iox_server_t
const self,
void*
const payload);
132 void iox_server_release_response(iox_server_t
const self,
void*
const payload);
141 void iox_server_offer(iox_server_t
const self);
145 void iox_server_stop_offer(iox_server_t
const self);
150 bool iox_server_is_offered(iox_server_t
const self);
155 bool iox_server_has_clients(iox_server_t
const self);
160 bool iox_server_has_requests(iox_server_t
const self);
165 bool iox_server_has_missed_requests(iox_server_t
const self);
169 void iox_server_release_queued_requests(iox_server_t
const self);
options to be set for a server
Definition: server.h:30
ENUM iox_QueueFullPolicy requestQueueFullPolicy
Sets whether the client blocks when the server request queue is full.
Definition: server.h:41
ENUM iox_ConsumerTooSlowPolicy clientTooSlowPolicy
Sets whether the server blocks when the client response queue is full.
Definition: server.h:44
uint64_t initCheck
this value will be set exclusively by iox_server_options_init and is not supposed to be modified othe...
Definition: server.h:48
bool offerOnCreate
Indicates if the server should be connected when created.
Definition: server.h:38
uint64_t requestQueueCapacity
size of the request queue
Definition: server.h:32
has exactly the size required to store the underlying object of iox_server_t
Definition: types.h:80
Definition: service_description.h:25