class SCTPNotificationQueue

SCTP Notification Queue. More...

Full nameCoral::SCTPNotificationQueue
Definition#include <sctpnotificationqueue.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class is a queue for SCTP notifications.

 SCTPNotificationQueue ()

SCTPNotificationQueue

Constructor.

 ~SCTPNotificationQueue ()

~SCTPNotificationQueue

Destructor.

bool  addNotification (const SCTPNotification& notification)

addNotification

Add notification to tail of queue.

Parameters:
notificationNotification.

bool  getNotification (SCTPNotification& notification)

getNotification

Get and remove notification from top of queue.

Parameters:
notificationReference to store notification to.

Returns: true, if there was a notification; false, if the queue is empty.

void  updateNotification (const SCTPNotification& notification)

updateNotification

Update notification on head of queue.

Parameters:
notificationNotification.

void  dropNotification ()

dropNotification

Drop notification on head of queue.

inline bool  waitForChunk (const card64 timeout)

waitForChunk

Wait for new notification.

Parameters:
timeoutTimeout in microseconds.

Returns: true, if new notification arrived; false otherwise.

inline void  signal ()

signal

Signalize, that new notification has arrived.

void  flush ()

flush

Flush queue.

inline cardinal  count ()

count

[const]

Get number of chunks in queue.

Returns: Number of chunks.

inline Condition*  getUpdateCondition ()

getUpdateCondition

Get pointer to update condition.

Returns: Update condition.