S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_sub_sockets_mgr.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef SOPC_SUB_SOCKETS_MGR_H_
21#define SOPC_SUB_SOCKETS_MGR_H_
22
23#include "sopc_raw_sockets.h"
24
25typedef void SOPC_ReadyToReceive(void* sockContext, SOPC_Socket sock);
26typedef void SOPC_Sub_Sockets_Timeout_Cb(void* ctx);
27
37
54void SOPC_Sub_SocketsMgr_Initialize(void* sockContextArray,
55 size_t sizeOfSockContextElt,
56 SOPC_Socket* socketArray,
57 uint16_t nbSockets,
58 SOPC_ReadyToReceive* pCallback,
59 const SOPC_Sub_Sockets_Timeout* pTimeout,
60 int threadPriority);
61
66
67#endif /* SOPC_SUB_SOCKETS_MGR_H_ */
A platform independent API to use sockets.
void SOPC_ReadyToReceive(void *sockContext, SOPC_Socket sock)
Definition sopc_sub_sockets_mgr.h:25
void SOPC_Sub_Sockets_Timeout_Cb(void *ctx)
Definition sopc_sub_sockets_mgr.h:26
struct SOPC_Sub_Sockets_Timeout SOPC_Sub_Sockets_Timeout
void SOPC_Sub_SocketsMgr_Initialize(void *sockContextArray, size_t sizeOfSockContextElt, SOPC_Socket *socketArray, uint16_t nbSockets, SOPC_ReadyToReceive *pCallback, const SOPC_Sub_Sockets_Timeout *pTimeout, int threadPriority)
void SOPC_Sub_SocketsMgr_Clear(void)
Socket base type.
Definition p_sopc_sockets.h:36
Definition sopc_sub_sockets_mgr.h:29
SOPC_Sub_Sockets_Timeout_Cb * callback
Definition sopc_sub_sockets_mgr.h:31
uint32_t period_ms
Definition sopc_sub_sockets_mgr.h:35
void * pContext
Definition sopc_sub_sockets_mgr.h:33