CoSWoT Servient-C
Loading...
Searching...
No Matches
Functions
COSSB methods

Functions

void initCoSSB ()
 Method that initializes the CoSSB.
 
void deleteCoSSB ()
 Method that frees the TopicList structure.
 
void publish (char *rdfG)
 Method that publishes a graph to every subscriber, based on the topic of the graph.
 
void addSubscribtion (char *topic, func callback)
 Method used by the modules to subscribe to a topic.
 

Detailed Description

Function Documentation

◆ addSubscribtion()

void addSubscribtion ( char *  topic,
func  callback 
)

Method used by the modules to subscribe to a topic.

Parameters
topicTopic to which the module wants to subscribe
callbackThe callback to call in case a graph is published to the topic

◆ initCoSSB()

void initCoSSB ( )

Method that initializes the CoSSB.

◆ publish()

void publish ( char *  rdfG)

Method that publishes a graph to every subscriber, based on the topic of the graph.

Parameters
rdfGGraph to publish