19#ifndef PROTOCORE_SOCKPOOL_H
20#define PROTOCORE_SOCKPOOL_H
24#if PROTOCORE_ENABLE_SOCKPOOL
51 SOCK_ACQ_RECYCLED = 1,
136 SockpoolInitArgs init_args;
137 SockpoolAcquireArgs acquire_args;
138 SockpoolTouchArgs touch_args;
139 SockpoolReleaseArgs release_args;
140 SockpoolFindArgs find_args;
141 SockpoolInUseArgs in_use_args;
148extern SockpoolVars SockpoolV;
153 void (*
const init)(uint8_t *work);
154 void (*
const acquire)(uint8_t *work);
155 void (*
const touch)(uint8_t *work);
156 void (*
const release)(uint8_t *work);
157 void (*
const find)(uint8_t *work);
158 void (*
const in_use)(uint8_t *work);
163void protocore_sockpool_init(uint8_t *work);
164void protocore_sockpool_acquire(uint8_t *work);
165void protocore_sockpool_touch(uint8_t *work);
166void protocore_sockpool_release(uint8_t *work);
167void protocore_sockpool_find(uint8_t *work);
168void protocore_sockpool_in_use(uint8_t *work);
174static const SockpoolNs Sockpool __attribute__((unused)) = {
175 .init = protocore_sockpool_init,
176 .acquire = protocore_sockpool_acquire,
177 .touch = protocore_sockpool_touch,
178 .release = protocore_sockpool_release,
179 .find = protocore_sockpool_find,
180 .in_use = protocore_sockpool_in_use,
PROTO_ENUM_PACKED
Application protocol spoken on a listener port or connection slot.
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS