Go to the source code of this file.
◆ SOPC_ReadyToReceive
typedef void SOPC_ReadyToReceive(void *sockContext, SOPC_Socket sock) |
◆ SOPC_Sub_Sockets_Timeout_Cb
typedef void SOPC_Sub_Sockets_Timeout_Cb(void *ctx) |
◆ SOPC_Sub_Sockets_Timeout
typedef struct SOPC_Sub_Sockets_Timeout SOPC_Sub_Sockets_Timeout |
◆ SOPC_Sub_SocketsMgr_Initialize()
Initialize the sockets manager for the given sockets (with custom context), the data received callback and tick callback (to check keep alive timeout). A dedicated thread is started to check when sockets have data to read and to call the periodic callback.
- Parameters
-
sockContextArray | array of context (shall have nbSockets elements) |
sizeOfSockContextElt | size of an element of context in sockContextArray |
socketArray | array of sockets defined to receive data as subscriber (shall have nbSockets elements) |
nbSockets | the number of sockets (and sockets context) |
pCallback | the callback called when a socket has data to read available, socket and its associated context are provided by caller |
pTimeout | The timeout configuration. Can be NULL if no timeout is configured |
threadPriority | This value must be 0 (thread created with usual priority) or 1 to 99 (thread created with FIFO scheduling policy requiring administrative rights) |
◆ SOPC_Sub_SocketsMgr_Clear()
void SOPC_Sub_SocketsMgr_Clear |
( |
void | | ) |
|
Awaits the dedicated thread to stop, clear the context and return.