Association* retrieveAssociationULP(unsigned int assocID)

retrieveAssociationULP retrieves a association from the list using the local tag as key.

Documentation

retrieveAssociationULP retrieves a association from the list using the local tag as key. This function is required, because for ULP calls at SCTP, it is not known if the association pointer is set or not. For instance, sctp_send() can result from an event originating from SCTP or for instance from a time event. In the first case the association must not be retrieved from the list, whereas in second it must. retrieveAssociationULP bypasses this problems by retrieving the association only if currentAssociation equals NULL. Furthermore the global parameter clearAssociation is set accordingly to signal the caller it should clear the currentAssociation after the ULP call has been handled.

Parameters:
assocID - association ID
Returns:
pointer to the retrieved association, or NULL

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.