connectionmanager_types.h

// SPDX-License-Identifier: MIT

struct elosConnectionManager
[source]

Data structure of a ConnectionManager

safuFlags_t flags
[source]

State bits of the component (e.g. initialized, active, e.t.c.)

int fd
[source]

listener socket used for waiting for new connections

int syncFd
[source]

eventfd used for synchronization with the worker thread *

elosClientConnection_t connections[200]
[source]

Array of ClientConnections

pthread_t listenThread
[source]

worker thread used by pthread_* functions

elosClientConnectionSharedData_t sharedData
[source]

Data shared between all ClientConnections

elosClientAuthorization_t clientAuth
[source]

Client authorization functionality

elosConnectionManagerSetClientConnectionHandlers_t setConnectionHandlers
[source]

Pointer to a function that sets connection specific function handlers

void *connectionManagerContext
[source]

Pointer to data structure that holds plugin specific data

elosConnectionManagerInitializeListener_t initializeListener
[source]

Pointer to a function that sets up the listener socket

elosConnectionManagerListenerAcceptConnection_t accept
[source]

A pointer to a function that accepts incoming connections on the listener socket

elosConnectionManagerCloseListener_t closeListener
[source]

A pointer to a function that closes the listener socket

elosConnectionManagerDeleteListener_t deleteListener
[source]

A pointer to a function that deletes allocated structures

elosClientAuthorizationInitialize_t authorizationInitialize
[source]

Pointer to a function that initializes data structures for the client authorization

elosClientAuthorizationDelete_t authorizationDelete
[source]

Pointer to a function that deletes data structures for the client authorization

elosClientAuthorizationIsValid_t authorize
[source]

Pointer to a function that checks whether a client is authorized

elosGetConnectionLimit_t getConnectionLimit
[source]

Pointer to a function that gets the maximum number of client connections from config

int connectionLimit
[source]
struct elosConnectionManager_t
[source]

Data structure of a ConnectionManager

safuFlags_t flags
[source]

State bits of the component (e.g. initialized, active, e.t.c.)

int fd
[source]

listener socket used for waiting for new connections

int syncFd
[source]

eventfd used for synchronization with the worker thread *

elosClientConnection_t connections[200]
[source]

Array of ClientConnections

pthread_t listenThread
[source]

worker thread used by pthread_* functions

elosClientConnectionSharedData_t sharedData
[source]

Data shared between all ClientConnections

elosClientAuthorization_t clientAuth
[source]

Client authorization functionality

elosConnectionManagerSetClientConnectionHandlers_t setConnectionHandlers
[source]

Pointer to a function that sets connection specific function handlers

void *connectionManagerContext
[source]

Pointer to data structure that holds plugin specific data

elosConnectionManagerInitializeListener_t initializeListener
[source]

Pointer to a function that sets up the listener socket

elosConnectionManagerListenerAcceptConnection_t accept
[source]

A pointer to a function that accepts incoming connections on the listener socket

elosConnectionManagerCloseListener_t closeListener
[source]

A pointer to a function that closes the listener socket

elosConnectionManagerDeleteListener_t deleteListener
[source]

A pointer to a function that deletes allocated structures

elosClientAuthorizationInitialize_t authorizationInitialize
[source]

Pointer to a function that initializes data structures for the client authorization

elosClientAuthorizationDelete_t authorizationDelete
[source]

Pointer to a function that deletes data structures for the client authorization

elosClientAuthorizationIsValid_t authorize
[source]

Pointer to a function that checks whether a client is authorized

elosGetConnectionLimit_t getConnectionLimit
[source]

Pointer to a function that gets the maximum number of client connections from config

int connectionLimit
[source]