open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
ua_lwip.h File Reference
#include <lwip/tcpip.h>
#include <lwip/netdb.h>
#include <lwip/init.h>
#include <lwip/sockets.h>

Go to the source code of this file.

Macros

#define OPTVAL_TYPE   int
 
#define UA_fd_set(fd, fds)   FD_SET((unsigned int)fd, fds)
 
#define UA_fd_isset(fd, fds)   FD_ISSET((unsigned int)fd, fds)
 
#define UA_IPV6   LWIP_IPV6
 
#define UA_SOCKET   int
 
#define UA_INVALID_SOCKET   -1
 
#define UA_ERRNO   errno
 
#define UA_INTERRUPTED   EINTR
 
#define UA_AGAIN   EAGAIN
 
#define UA_EAGAIN   EAGAIN
 
#define UA_WOULDBLOCK   EWOULDBLOCK
 
#define UA_ERR_CONNECTION_PROGRESS   EINPROGRESS
 
#define UA_POLLIN   POLLIN
 
#define UA_POLLOUT   POLLOUT
 
#define UA_poll   lwip_poll
 
#define UA_send   lwip_send
 
#define UA_recv   lwip_recv
 
#define UA_sendto   lwip_sendto
 
#define UA_recvfrom   lwip_recvfrom
 
#define UA_htonl   lwip_htonl
 
#define UA_ntohl   lwip_ntohl
 
#define UA_close   lwip_close
 
#define UA_select   lwip_select
 
#define UA_shutdown   lwip_shutdown
 
#define UA_socket   lwip_socket
 
#define UA_bind   lwip_bind
 
#define UA_listen   lwip_listen
 
#define UA_accept   lwip_accept
 
#define UA_connect   lwip_connect
 
#define UA_getsockopt   lwip_getsockopt
 
#define UA_setsockopt   lwip_setsockopt
 
#define UA_freeaddrinfo   lwip_freeaddrinfo
 
#define UA_gethostname   gethostname_lwip
 
#define UA_getsockname   lwip_getsockname
 
#define UA_getaddrinfo   lwip_getaddrinfo
 
#define UA_inet_pton(af, src, dst)    (((af) == AF_INET) ? ip4addr_aton((src),(ip4_addr_t*)(dst)) : 0)
 
#define UA_LOG_SOCKET_ERRNO_GAI_WRAP   UA_LOG_SOCKET_ERRNO_WRAP
 

Functions

int gethostname_lwip (char *name, size_t len)
 

Macro Definition Documentation

◆ OPTVAL_TYPE

#define OPTVAL_TYPE   int

This work is licensed under a Creative Commons CCZero 1.0 Universal License.

See http://creativecommons.org/publicdomain/zero/1.0/ for more information.

Copyright 2018 (c) Jose Cabral, fortiss GmbH

Definition at line 25 of file ua_lwip.h.

◆ UA_fd_set

#define UA_fd_set ( fd,
fds )   FD_SET((unsigned int)fd, fds)

Definition at line 27 of file ua_lwip.h.

◆ UA_fd_isset

#define UA_fd_isset ( fd,
fds )   FD_ISSET((unsigned int)fd, fds)

Definition at line 28 of file ua_lwip.h.

◆ UA_IPV6

#define UA_IPV6   LWIP_IPV6

Definition at line 30 of file ua_lwip.h.

◆ UA_SOCKET

#define UA_SOCKET   int

Definition at line 31 of file ua_lwip.h.

◆ UA_INVALID_SOCKET

#define UA_INVALID_SOCKET   -1

Definition at line 32 of file ua_lwip.h.

◆ UA_ERRNO

#define UA_ERRNO   errno

Definition at line 33 of file ua_lwip.h.

◆ UA_INTERRUPTED

#define UA_INTERRUPTED   EINTR

Definition at line 34 of file ua_lwip.h.

◆ UA_AGAIN

#define UA_AGAIN   EAGAIN

Definition at line 35 of file ua_lwip.h.

◆ UA_EAGAIN

#define UA_EAGAIN   EAGAIN

Definition at line 36 of file ua_lwip.h.

◆ UA_WOULDBLOCK

#define UA_WOULDBLOCK   EWOULDBLOCK

Definition at line 37 of file ua_lwip.h.

◆ UA_ERR_CONNECTION_PROGRESS

#define UA_ERR_CONNECTION_PROGRESS   EINPROGRESS

Definition at line 38 of file ua_lwip.h.

◆ UA_POLLIN

#define UA_POLLIN   POLLIN

Definition at line 40 of file ua_lwip.h.

◆ UA_POLLOUT

#define UA_POLLOUT   POLLOUT

Definition at line 41 of file ua_lwip.h.

◆ UA_poll

#define UA_poll   lwip_poll

Definition at line 43 of file ua_lwip.h.

◆ UA_send

#define UA_send   lwip_send

Definition at line 44 of file ua_lwip.h.

◆ UA_recv

#define UA_recv   lwip_recv

Definition at line 45 of file ua_lwip.h.

◆ UA_sendto

#define UA_sendto   lwip_sendto

Definition at line 46 of file ua_lwip.h.

◆ UA_recvfrom

#define UA_recvfrom   lwip_recvfrom

Definition at line 47 of file ua_lwip.h.

◆ UA_htonl

#define UA_htonl   lwip_htonl

Definition at line 48 of file ua_lwip.h.

◆ UA_ntohl

#define UA_ntohl   lwip_ntohl

Definition at line 49 of file ua_lwip.h.

◆ UA_close

#define UA_close   lwip_close

Definition at line 50 of file ua_lwip.h.

◆ UA_select

#define UA_select   lwip_select

Definition at line 51 of file ua_lwip.h.

◆ UA_shutdown

#define UA_shutdown   lwip_shutdown

Definition at line 52 of file ua_lwip.h.

◆ UA_socket

#define UA_socket   lwip_socket

Definition at line 53 of file ua_lwip.h.

◆ UA_bind

#define UA_bind   lwip_bind

Definition at line 54 of file ua_lwip.h.

◆ UA_listen

#define UA_listen   lwip_listen

Definition at line 55 of file ua_lwip.h.

◆ UA_accept

#define UA_accept   lwip_accept

Definition at line 56 of file ua_lwip.h.

◆ UA_connect

#define UA_connect   lwip_connect

Definition at line 57 of file ua_lwip.h.

◆ UA_getsockopt

#define UA_getsockopt   lwip_getsockopt

Definition at line 58 of file ua_lwip.h.

◆ UA_setsockopt

#define UA_setsockopt   lwip_setsockopt

Definition at line 59 of file ua_lwip.h.

◆ UA_freeaddrinfo

#define UA_freeaddrinfo   lwip_freeaddrinfo

Definition at line 60 of file ua_lwip.h.

◆ UA_gethostname

#define UA_gethostname   gethostname_lwip

Definition at line 62 of file ua_lwip.h.

◆ UA_getsockname

#define UA_getsockname   lwip_getsockname

Definition at line 67 of file ua_lwip.h.

◆ UA_getaddrinfo

#define UA_getaddrinfo   lwip_getaddrinfo

Definition at line 72 of file ua_lwip.h.

◆ UA_inet_pton

#define UA_inet_pton ( af,
src,
dst )    (((af) == AF_INET) ? ip4addr_aton((src),(ip4_addr_t*)(dst)) : 0)

Definition at line 83 of file ua_lwip.h.

◆ UA_LOG_SOCKET_ERRNO_GAI_WRAP

#define UA_LOG_SOCKET_ERRNO_GAI_WRAP   UA_LOG_SOCKET_ERRNO_WRAP

Definition at line 97 of file ua_lwip.h.

Function Documentation

◆ gethostname_lwip()

int gethostname_lwip ( char * name,
size_t len )