class SCTPSocketMaster

SCTP Socket Master. More...

Full nameCoral::SCTPSocketMaster
Definition#include <sctpsocketmaster.h>
InheritsCoral::Thread [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Members

Protected Static Methods

Protected Members


Detailed Description

This class manages the interaction between the SCTP Socket class and the userland SCTP implementation. It is implemented as a singleton and automatically instantiated at program startup.

 SCTPSocketMaster ()

SCTPSocketMaster

Constructor.

 ~SCTPSocketMaster ()

~SCTPSocketMaster

Destructor.

inline void  lock ()

lock

Lock the SCTP implementation for exclusive access. This includes Thread's critical section lock.

inline void  unlock ()

unlock

Unlock the SCTP implementation. This includes Thread's critical section lock.

UserSocketNotification (struct)

UserSocketNotification

void  addUserSocketNotification (UserSocketNotification* usn)

addUserSocketNotification

Add user socket to notification list. The socket is automatically removed from the list when the first notification is received! This is necessary to avoid endless loops of select() -> notification -> select() -> ... calls!

Parameters:
usnUser socket notification description.

void  deleteUserSocketNotification (UserSocketNotification* usn)

deleteUserSocketNotification

Remove user socket from notification list.

Parameters:
usnUser socket notification description.

static int InitializationResult

InitializationResult

static SCTPSocketMaster MasterInstance

MasterInstance

static cardinal LockLevel

LockLevel

[protected]

static SCTP_ulpCallbacks Callbacks

Callbacks

[protected]

static multimap<unsigned short, SCTPSocket*> SocketList

SocketList

[protected]

static set<unsigned short> ClosingSockets

ClosingSockets

[protected]

static multimap<unsigned int, unsigned short> ClosingAssociations

ClosingAssociations

[protected]

static card64 LastGarbageCollection

LastGarbageCollection

[protected]

static cardinal OldCancelState

OldCancelState

[protected]

SCTPSocket*  getSocketForAssociationID (const unsigned int assocID)

getSocketForAssociationID

[protected static]

Master instance (singleton).

void  delayedDeleteAssociation (const unsigned short instanceID, const unsigned int assocID)

delayedDeleteAssociation

[protected static]

void  delayedDeleteSocket (const unsigned short instanceID)

delayedDeleteSocket

[protected static]