|
Hybrid ICN (hICN) plugin
v21.06-rc0-4-g18fa668
|
A Missive is a status message sent over a broadcast channel inside hicn-light. More...
#include <hicn/messenger/missiveType.h>

Go to the source code of this file.
Typedefs | |
| typedef struct missive | Missive |
Functions | |
| Missive * | missive_Create (MissiveType missiveType, unsigned connectionid) |
| Missive * | missive_Acquire (const Missive *missive) |
| void | missive_Release (Missive **missivePtr) |
| MissiveType | missive_GetType (const Missive *missive) |
| unsigned | missive_GetConnectionId (const Missive *missive) |
A Missive is a status message sent over a broadcast channel inside hicn-light.
Recipients use messenger_Register to receive missives. They are broadcast to all recipients.
| Missive* missive_Acquire | ( | const Missive * | missive | ) |
Acquire a reference counted copy
Increases the reference count by 1 and returns the original object.
| [in] | missive | An allocated missive |
| Missive* missive_Create | ( | MissiveType | missiveType, |
| unsigned | connectionid | ||
| ) |
Creates a Missive and sets the reference count to 1
A Missive may be sent to listeners of the Messenger to inform them of events on a connection id.
| [in] | MissiveType | The event type |
| [in] | connectionid | The relevant conneciton id |
| unsigned missive_GetConnectionId | ( | const Missive * | missive | ) |
Returns the connection ID of the missive
An event is usually associated with a connection id (i.e. the I/O channel that originaged the event).
| [in] | missive | An allocated missive |
| MissiveType missive_GetType | ( | const Missive * | missive | ) |
Returns the type of the missive
Returns the type of event the missive represents
| [in] | missive | An allocated missive |
| void missive_Release | ( | Missive ** | missivePtr | ) |
Releases a reference counted copy.
If it is the last reference, the missive is freed.
| [in,out] | missivePtr | Double pointer to a missive, will be nulled. |
1.8.17