Distributed Publish Subscribe for IoT
synchronous.h File Reference

Go to the source code of this file.

Functions

DPS_Status DPS_LinkTo (DPS_Node *node, const char *host, uint16_t port, DPS_NodeAddress *addr)
 Synchronous helper APIs that wrap the asynchronous versions. More...
 
DPS_Status DPS_UnlinkFrom (DPS_Node *node, DPS_NodeAddress *addr)
 Unlink from a previously linked remote node. More...
 

Function Documentation

DPS_Status DPS_LinkTo ( DPS_Node node,
const char *  host,
uint16_t  port,
DPS_NodeAddress addr 
)

Synchronous helper APIs that wrap the asynchronous versions.

Resolve a host and port and establish a link to a remote node.

Parameters
nodeThe local node to link from
hostThe host name or IP address to link to
portThe port number
addrReturns the resolved address for the remote node
DPS_Status DPS_UnlinkFrom ( DPS_Node node,
DPS_NodeAddress addr 
)

Unlink from a previously linked remote node.

Parameters
nodeThe local node to unlink from
addrThe address of the remote node to unlink