S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
p_sopc_sockets.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
24#ifndef SOPC_ZEPHYR_P_SOCKETS_HEADER_
25#define SOPC_ZEPHYR_P_SOCKETS_HEADER_
26
27#include <stdbool.h>
28#include <stdint.h>
29
30#include <zephyr/net/socket.h>
31
32#include "sopc_enums.h"
33
38{
39 int sock;
40};
41
47{
48 struct zsock_addrinfo addrInfo;
49};
50
56{
57 struct zsock_addrinfo address;
58};
59
63struct SOPC_SocketSet
64{
65 int32_t fdmax;
66 zsock_fd_set set;
67};
68
69#endif /* SOPC_ZEPHYR_P_SOCKETS_HEADER_ */
Set of sockets type.
Definition p_sopc_sockets.h:63
int32_t fdmax
Definition p_sopc_sockets.h:65
zsock_fd_set set
Definition p_sopc_sockets.h:66
Socket addressing information for listening or connecting operation type.
Definition p_sopc_sockets.h:46
struct addrinfo addrInfo
Definition p_sopc_sockets.h:47
Socket address information on a connected socket.
Definition p_sopc_sockets.h:55
struct addrinfo address
Definition p_sopc_sockets.h:56
Socket base type.
Definition p_sopc_sockets.h:36
int sock
Definition p_sopc_sockets.h:37