S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_pubsub_helpers.h File Reference
#include <stdbool.h>
#include "sopc_builtintypes.h"
#include "sopc_pubsub_conf.h"
#include "sopc_udp_sockets.h"

Go to the source code of this file.

Functions

bool SOPC_PubSubHelpers_ParseAddressUDP (const char *address, SOPC_Socket_AddressInfo **multicastAddr)
 
bool SOPC_PubSubHelpers_IsCompatibleVariant (const SOPC_FieldMetaData *fieldMetaData, const SOPC_Variant *variant, bool *out_isBad)
 
bool SOPC_PubSubHelpers_IsPreencodeCompatibleVariant (const SOPC_FieldMetaData *fieldMetaData, const SOPC_Variant *variant)
 Check if variant is compatible (value type and value rank) with field meta data in case of preencoded buffer.
 
bool SOPC_Helper_URI_ParseUri_WithPrefix (const char *prefix, const char *uri, size_t *hostnameLength, size_t *portIdx, size_t *portLength)
 

Function Documentation

◆ SOPC_PubSubHelpers_ParseAddressUDP()

bool SOPC_PubSubHelpers_ParseAddressUDP ( const char * address,
SOPC_Socket_AddressInfo ** multicastAddr )

◆ SOPC_PubSubHelpers_IsCompatibleVariant()

bool SOPC_PubSubHelpers_IsCompatibleVariant ( const SOPC_FieldMetaData * fieldMetaData,
const SOPC_Variant * variant,
bool * out_isBad )

Check if the variant is compatible (value type, value rank and arrayDimension) with the field meta data

Parameters
fieldMetaDatathe field meta data with which compliance shall be verified
variantthe variant to check
out_isBadoutput flag to indicate that the variant is compatible (
Returns
true) because it is Bad status value instead of expected value type, it then indicates value status only

Note: out_isBad can be NULL if information is not needed Note2: if the builtin type in the field meta data is Null builtin type, always

Returns
true
true if variant is compatible with the field meta data, false otherwise

◆ SOPC_PubSubHelpers_IsPreencodeCompatibleVariant()

bool SOPC_PubSubHelpers_IsPreencodeCompatibleVariant ( const SOPC_FieldMetaData * fieldMetaData,
const SOPC_Variant * variant )

Check if variant is compatible (value type and value rank) with field meta data in case of preencoded buffer.

Parameters
fieldMetaDataThe field meta data with which compliance shall be verified
variantthe variant to check
Returns
true if variant is compatible with the field meta data, false otherwise

◆ SOPC_Helper_URI_ParseUri_WithPrefix()

bool SOPC_Helper_URI_ParseUri_WithPrefix ( const char * prefix,
const char * uri,
size_t * hostnameLength,
size_t * portIdx,
size_t * portLength )