S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
p_sopc_multicast.h File Reference
#include <stdint.h>
#include "sopc_enums.h"
#include "sopc_raw_sockets.h"
#include "p_sopc_sockets.h"

Go to the source code of this file.

Functions

SOPC_ReturnStatus P_MULTICAST_AddIpV4Membership (SOPC_Socket sock, const SOPC_Socket_AddressInfo *multicast)
 Create a multicast group and sets sock in that group.
 
SOPC_ReturnStatus P_MULTICAST_DropIpV4Membership (SOPC_Socket sock, const SOPC_Socket_AddressInfo *multicast)
 Removes a multicast group.
 

Function Documentation

◆ P_MULTICAST_AddIpV4Membership()

SOPC_ReturnStatus P_MULTICAST_AddIpV4Membership ( SOPC_Socket sock,
const SOPC_Socket_AddressInfo * multicast )

Create a multicast group and sets sock in that group.

Parameters
sockThe socket to register in multicast group. Caller must ensure sock is not NULL
multicastThe Multicast IPV4 address
Returns
SOPC_STATUS_OK in case of success

◆ P_MULTICAST_DropIpV4Membership()

SOPC_ReturnStatus P_MULTICAST_DropIpV4Membership ( SOPC_Socket sock,
const SOPC_Socket_AddressInfo * multicast )

Removes a multicast group.

Parameters
sockThe socket to remove from a multicast group. Caller must ensure sock is not NULL
multicastThe Multicast IPV4 address, or NULL if unknown
Returns
SOPC_STATUS_OK in case of success