S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_sockets_api.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
28#ifndef SOPC_SOCKETS_API_H_
29#define SOPC_SOCKETS_API_H_
30
31#include <stdint.h>
32
33#include "sopc_event_handler.h"
34
72
118
119/* Sockets event enqueue function */
120void SOPC_Sockets_EnqueueEvent(SOPC_Sockets_InputEvent socketEvent, uint32_t id, uintptr_t params, uintptr_t auxParam);
121
123
125
127
128#endif /* SOPC_SOCKETS_API_H_ */
struct _SOPC_EventHandler SOPC_EventHandler
Processes messages from a queue.
Definition sopc_event_handler.h:35
void SOPC_Sockets_SetEventHandler(SOPC_EventHandler *handler)
void SOPC_Sockets_Clear(void)
void SOPC_Sockets_Initialize(void)
void SOPC_Sockets_EnqueueEvent(SOPC_Sockets_InputEvent socketEvent, uint32_t id, uintptr_t params, uintptr_t auxParam)
SOPC_Sockets_OutputEvent
Definition sopc_sockets_api.h:75
@ SOCKET_LISTENER_CONNECTION
Definition sopc_sockets_api.h:82
@ SOCKET_CONNECTION
Definition sopc_sockets_api.h:99
@ SOCKET_CREATED
Definition sopc_sockets_api.h:92
@ SOCKET_FAILURE
Definition sopc_sockets_api.h:105
@ SOCKET_LISTENER_OPENED
Definition sopc_sockets_api.h:76
@ SOCKET_RCV_BYTES
Definition sopc_sockets_api.h:110
@ SOCKET_LISTENER_FAILURE
Definition sopc_sockets_api.h:89
SOPC_Sockets_InputEvent
Definition sopc_sockets_api.h:37
@ SOCKET_CLOSE_LISTENER
Definition sopc_sockets_api.h:62
@ SOCKET_CLOSE
Definition sopc_sockets_api.h:59
@ SOCKET_CREATE_LISTENER
Definition sopc_sockets_api.h:39
@ SOCKET_CREATE_CONNECTION
Definition sopc_sockets_api.h:53
@ SOCKET_WRITE
Definition sopc_sockets_api.h:66
@ SOCKET_ACCEPTED_CONNECTION
Definition sopc_sockets_api.h:47