Skip to main content

odin_connection_pool_create

enum OdinError odin_connection_pool_create(struct OdinConnectionPoolSettings settings,
struct OdinConnectionPool **out_connection_pool);

Overview

Initializes a new ODIN connection pool with the given settings and outputs a pointer to the newly created connection pool. The connection pool is intended to manage multiple connections efficiently.

Parameters

NameTypeDescription
settingsOdinConnectionPoolSettingsConfigurations for callbacks (on_datagram, on_rpc).
out_connection_poolstruct OdinConnectionPool **Pointer to receive the handle of the created connection pool.

Return Value

TypeDescription
OdinErrorODIN_ERROR_SUCCESS on success.