|
|
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:
notification | Notification. |
bool getNotification (SCTPNotification& notification)
| getNotification |
Get and remove notification from top of queue.
Parameters:
notification | Reference 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:
notification | Notification. |
void dropNotification ()
| dropNotification |
Drop notification on head of queue.
inline bool waitForChunk (const card64 timeout)
| waitForChunk |
Wait for new notification.
Parameters:
timeout | Timeout 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.