19#ifndef PROTOCORE_SOCKPOOL_H
20#define PROTOCORE_SOCKPOOL_H
24#if PROTOCORE_ENABLE_SOCKPOOL
50 SOCK_ACQ_RECYCLED = 1,
135 SockpoolInitArgs init_args;
136 SockpoolAcquireArgs acquire_args;
137 SockpoolTouchArgs touch_args;
138 SockpoolReleaseArgs release_args;
139 SockpoolFindArgs find_args;
140 SockpoolInUseArgs in_use_args;
147extern SockpoolVars SockpoolV;
152 void (*
const init)(
const uint8_t *work);
153 void (*
const acquire)(
const uint8_t *work);
154 void (*
const touch)(
const uint8_t *work);
155 void (*
const release)(
const uint8_t *work);
156 void (*
const find)(
const uint8_t *work);
157 void (*
const in_use)(
const uint8_t *work);
162void protocore_sockpool_init(
const uint8_t *work);
163void protocore_sockpool_acquire(
const uint8_t *work);
164void protocore_sockpool_touch(
const uint8_t *work);
165void protocore_sockpool_release(
const uint8_t *work);
166void protocore_sockpool_find(
const uint8_t *work);
167void protocore_sockpool_in_use(
const uint8_t *work);
173static const SockpoolNs Sockpool __attribute__((unused)) = {
174 .init = protocore_sockpool_init,
175 .acquire = protocore_sockpool_acquire,
176 .touch = protocore_sockpool_touch,
177 .release = protocore_sockpool_release,
178 .find = protocore_sockpool_find,
179 .in_use = protocore_sockpool_in_use,
EMBED_ENUM_BYTE(ProtoConn, PROTO_NONE=0, PROTO_HTTP=1, PROTO_TELNET=2, PROTO_SSH=3, PROTO_MODBUS=4, PROTO_OPCUA=5, PROTO_SSH_RFWD=6, PROTO_RELAY=7, PROTO_BRIDGE=8, PROTO_NTRIP_CASTER=9, PROTO_MESH=10, PROTO_UDP=11,)
Application protocol spoken on a listener port or connection slot.