open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
architecture_functions.h File Reference

Go to the source code of this file.

Macros

#define UA_fileExists(X)   ( UA_access(X, 0) == 0)
 

Functions

_UA_BEGIN_DECLS int UA_sleep_ms (unsigned int miliSeconds)
 
ssize_t UA_send (UA_SOCKET sockfd, const void *buf, size_t len, int flags)
 
ssize_t UA_sendto (UA_SOCKET sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
 
int UA_select (UA_SOCKET nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
 
ssize_t UA_recv (UA_SOCKET sockfd, void *buf, size_t len, int flags)
 
ssize_t UA_recvfrom (UA_SOCKET sockfd, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
 
ssize_t UA_recvmsg (int sockfd, struct msghdr *msg, int flags)
 
int UA_shutdown (UA_SOCKET sockfd, int how)
 
UA_SOCKET UA_socket (int domain, int type, int protocol)
 
int UA_bind (UA_SOCKET sockfd, const struct sockaddr *addr, socklen_t addrlen)
 
int UA_listen (UA_SOCKET sockfd, int backlog)
 
int UA_accept (UA_SOCKET sockfd, struct sockaddr *addr, socklen_t *addrlen)
 
int UA_close (UA_SOCKET sockfd)
 
int UA_connect (UA_SOCKET sockfd, const struct sockaddr *addr, socklen_t addrlen)
 
void UA_fd_set (UA_SOCKET fd, fd_set *set)
 
int UA_fd_isset (UA_SOCKET fd, fd_set *set)
 
int UA_getaddrinfo (const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
 
uint32_t UA_htonl (uint32_t hostlong)
 
uint32_t UA_ntohl (uint32_t netlong)
 
int UA_inet_pton (int af, const char *src, void *dst)
 
unsigned int UA_socket_set_blocking (UA_SOCKET sockfd)
 
unsigned int UA_socket_set_nonblocking (UA_SOCKET sockfd)
 
int UA_ioctl (int fildes, int request,...)
 
int UA_getsockopt (int sockfd, int level, int optname, void *optval, socklen_t *optlen)
 
int UA_setsockopt (int sockfd, int level, int optname, const void *optval, socklen_t optlen)
 
void UA_freeaddrinfo (struct addrinfo *res)
 
int UA_gethostname (char *name, size_t len)
 
int UA_getsockname (int sockfd, struct sockaddr *addr, socklen_t *addrlen)
 
void UA_initialize_architecture_network (void)
 
void UA_deinitialize_architecture_network (void)
 
int UA_snprintf (char *pa_stream, size_t pa_size, const char *pa_format,...)
 
int UA_strncasecmp (const char *s1, const char *s2, size_t n)
 
int UA_access (const char *pathname, int mode)
 

Macro Definition Documentation

◆ UA_fileExists

#define UA_fileExists ( X)    ( UA_access(X, 0) == 0)

Definition at line 163 of file architecture_functions.h.

Function Documentation

◆ UA_sleep_ms()

_UA_BEGIN_DECLS int UA_sleep_ms ( unsigned int miliSeconds)

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 Sleep function

◆ UA_send()

ssize_t UA_send ( UA_SOCKET sockfd,
const void * buf,
size_t len,
int flags )

Socket functions.

◆ UA_sendto()

ssize_t UA_sendto ( UA_SOCKET sockfd,
const void * buf,
size_t len,
int flags,
const struct sockaddr * dest_addr,
socklen_t addrlen )

◆ UA_select()

int UA_select ( UA_SOCKET nfds,
fd_set * readfds,
fd_set * writefds,
fd_set * exceptfds,
struct timeval * timeout )

◆ UA_recv()

ssize_t UA_recv ( UA_SOCKET sockfd,
void * buf,
size_t len,
int flags )

◆ UA_recvfrom()

ssize_t UA_recvfrom ( UA_SOCKET sockfd,
void * buf,
size_t len,
int flags,
struct sockaddr * src_addr,
socklen_t * addrlen )

◆ UA_recvmsg()

ssize_t UA_recvmsg ( int sockfd,
struct msghdr * msg,
int flags )

◆ UA_shutdown()

int UA_shutdown ( UA_SOCKET sockfd,
int how )

◆ UA_socket()

UA_SOCKET UA_socket ( int domain,
int type,
int protocol )

◆ UA_bind()

int UA_bind ( UA_SOCKET sockfd,
const struct sockaddr * addr,
socklen_t addrlen )

◆ UA_listen()

int UA_listen ( UA_SOCKET sockfd,
int backlog )

◆ UA_accept()

int UA_accept ( UA_SOCKET sockfd,
struct sockaddr * addr,
socklen_t * addrlen )

◆ UA_close()

int UA_close ( UA_SOCKET sockfd)

◆ UA_connect()

int UA_connect ( UA_SOCKET sockfd,
const struct sockaddr * addr,
socklen_t addrlen )

◆ UA_fd_set()

void UA_fd_set ( UA_SOCKET fd,
fd_set * set )

◆ UA_fd_isset()

int UA_fd_isset ( UA_SOCKET fd,
fd_set * set )

◆ UA_getaddrinfo()

int UA_getaddrinfo ( const char * node,
const char * service,
const struct addrinfo * hints,
struct addrinfo ** res )

◆ UA_htonl()

uint32_t UA_htonl ( uint32_t hostlong)

◆ UA_ntohl()

uint32_t UA_ntohl ( uint32_t netlong)

◆ UA_inet_pton()

int UA_inet_pton ( int af,
const char * src,
void * dst )

◆ UA_socket_set_blocking()

unsigned int UA_socket_set_blocking ( UA_SOCKET sockfd)

◆ UA_socket_set_nonblocking()

unsigned int UA_socket_set_nonblocking ( UA_SOCKET sockfd)

◆ UA_ioctl()

int UA_ioctl ( int fildes,
int request,
... )

◆ UA_getsockopt()

int UA_getsockopt ( int sockfd,
int level,
int optname,
void * optval,
socklen_t * optlen )

◆ UA_setsockopt()

int UA_setsockopt ( int sockfd,
int level,
int optname,
const void * optval,
socklen_t optlen )

◆ UA_freeaddrinfo()

void UA_freeaddrinfo ( struct addrinfo * res)

◆ UA_gethostname()

int UA_gethostname ( char * name,
size_t len )

◆ UA_getsockname()

int UA_getsockname ( int sockfd,
struct sockaddr * addr,
socklen_t * addrlen )

◆ UA_initialize_architecture_network()

void UA_initialize_architecture_network ( void )

◆ UA_deinitialize_architecture_network()

void UA_deinitialize_architecture_network ( void )

◆ UA_snprintf()

int UA_snprintf ( char * pa_stream,
size_t pa_size,
const char * pa_format,
... )

Print function.

◆ UA_strncasecmp()

int UA_strncasecmp ( const char * s1,
const char * s2,
size_t n )

◆ UA_access()

int UA_access ( const char * pathname,
int mode )

Access to file function.