Distributed Publish & Subscribe for IoT
Node Address

Remote node addresses. More...

Typedefs

typedef struct _DPS_NodeAddress DPS_NodeAddress
 Opaque type for a remote node address.
 

Functions

void DPS_CopyAddress (DPS_NodeAddress *dest, const DPS_NodeAddress *src)
 Copy a node address. More...
 
DPS_NodeAddressDPS_CreateAddress (void)
 Creates a node address. More...
 
void DPS_DestroyAddress (DPS_NodeAddress *addr)
 Frees resources associated with an address. More...
 
const char * DPS_NodeAddrToString (const DPS_NodeAddress *addr)
 Get text representation of an address. More...
 
DPS_NodeAddressDPS_SetAddress (DPS_NodeAddress *addr, const char *addrText)
 Set a node address. More...
 

Detailed Description

Remote node addresses.

Function Documentation

◆ DPS_CopyAddress()

void DPS_CopyAddress ( DPS_NodeAddress dest,
const DPS_NodeAddress src 
)

Copy a node address.

Parameters
destThe address to copy to.
srcThe address to copy from.

◆ DPS_CreateAddress()

DPS_NodeAddress* DPS_CreateAddress ( void  )

Creates a node address.

Returns
The created address, or NULL if creation failed

◆ DPS_DestroyAddress()

void DPS_DestroyAddress ( DPS_NodeAddress addr)

Frees resources associated with an address.

Parameters
addrA previously created address.

◆ DPS_NodeAddrToString()

const char* DPS_NodeAddrToString ( const DPS_NodeAddress addr)

Get text representation of an address.

Note
This function uses a thread-local string buffer.
Parameters
addrto get the text for
Returns
A text string for the address

◆ DPS_SetAddress()

DPS_NodeAddress* DPS_SetAddress ( DPS_NodeAddress addr,
const char *  addrText 
)

Set a node address.

Parameters
addrThe address to set
addrTextThe text string for the address
Returns
The addr passed in, or NULL if an error occurred