28#ifndef SOPC_UDP_SOCKETS_H_
29#define SOPC_UDP_SOCKETS_H_
67 const char* interfaceName,
84 const char* interfaceName,
A buffer of bytes with a maximum size, length and position.
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
A platform independent API to use sockets.
SOPC_ReturnStatus SOPC_UDP_Socket_ReceiveFrom(SOPC_Socket sock, SOPC_Buffer *buffer)
Receive data on the UDP socket from given IP address and port.
SOPC_ReturnStatus SOPC_UDP_Socket_CreateToSend(SOPC_Socket_AddressInfo *destAddress, const char *interfaceName, bool setNonBlocking, SOPC_Socket *sock)
Create a new UDP socket and bind it.
SOPC_ReturnStatus SOPC_UDP_Socket_SendTo(SOPC_Socket sock, const SOPC_Socket_AddressInfo *destAddr, SOPC_Buffer *buffer)
Send data through the UDP socket to given IP address and port.
SOPC_ReturnStatus SOPC_UDP_Socket_Set_MulticastTTL(SOPC_Socket sock, uint8_t TTL_scope)
Set the Multicast TTL configuration value (default value is 1) Controls the live time of datagram (de...
void SOPC_UDP_Socket_Close(SOPC_Socket *sock)
Close the socket connection and/or clear the socket If the socket was automatically added to a multic...
SOPC_ReturnStatus SOPC_UDP_Socket_CreateToReceive(SOPC_Socket_AddressInfo *listenAddress, const char *interfaceName, bool setReuseAddr, bool setNonBlocking, SOPC_Socket *sock)
Create a new UDP socket and bind it.
SOPC_Socket_AddressInfo * SOPC_UDP_SocketAddress_Create(bool IPv6, const char *node, const char *service)
Create a new UDP socket address using getaddrinfo.
void SOPC_UDP_SocketAddress_Delete(SOPC_Socket_AddressInfo **addr)
Bytes buffer structure.
Definition sopc_buffer.h:38
Socket addressing information for listening or connecting operation type.
Definition p_sopc_sockets.h:46
Socket base type.
Definition p_sopc_sockets.h:36