struct SCTP_ulp_Callbacks

This struct containes the pointers to ULP callback functions.

[more]void (*dataArriveNotif)(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, void*)
indicates that new data arrived from peer (chapter 102A).
[more]void (*sendFailureNotif)(unsigned int, unsigned char *, unsigned int, unsigned int *, void*)
indicates a send failure (chapter 102B).
[more]void (*networkStatusChangeNotif)(unsigned int, short, unsigned short, void*)
indicates a change of network status (chapter 102C).
[more]void* (*communicationUpNotif)(unsigned int, unsigned short, int, unsigned short, unsigned short, void*)
indicates that a association is established (chapter 102D).
[more]void (*communicationLostNotif)(unsigned int, unsigned short, void*)
indicates that communication was lost to peer (chapter 102E).
[more]void (*communicationErrorNotif)(unsigned int, unsigned short, void*)
indicates that communication had an error.
[more]void (*restartNotif)(unsigned int, void*)
indicates that a RESTART has occurred.
[more]void (*shutdownCompleteNotif)(unsigned int, void*)
indicates that a SHUTDOWN has been COMPLETED.


Documentation

This struct containes the pointers to ULP callback functions. Each SCTP-instance can have its own set of callback functions. The callback functions of each SCTP-instance can be found by first reading the datastruct of an association from the list of associations. The datastruct of the association contains the name of the SCTP instance to which it belongs. With the name of the SCTP- instance its datastruct can be read from the list of SCTP-instances.
ovoid (*dataArriveNotif)(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, void*)
indicates that new data arrived from peer (chapter 102A).
Parameters:
1 - associationID
2 - streamID
3 - length of data
4 - protocol ID
5 - unordered flag (TRUE==1==unordered, FALSE==0==normal, numbered chunk)
6 - pointer to ULP data

ovoid (*sendFailureNotif)(unsigned int, unsigned char *, unsigned int, unsigned int *, void*)
indicates a send failure (chapter 102B).
Parameters:
1 - associationID
2 - pointer to data not sent
3 - dataLength
4 - pointer to context from sendChunk
5 - pointer to ULP data

ovoid (*networkStatusChangeNotif)(unsigned int, short, unsigned short, void*)
indicates a change of network status (chapter 102C).
Parameters:
1 - associationID
2 - destinationAddresses
3 - newState
4 - pointer to ULP data

ovoid* (*communicationUpNotif)(unsigned int, unsigned short, int, unsigned short, unsigned short, void*)
indicates that a association is established (chapter 102D).
Parameters:
1 - associationID
2 - status, type of event
3 - number of destination addresses
4 - number input streamns
5 - number output streams
6 - pointer to ULP data, usually NULL
Returns:
the callback is to return a pointer, that will be transparently returned with every callback

ovoid (*communicationLostNotif)(unsigned int, unsigned short, void*)
indicates that communication was lost to peer (chapter 102E).
Parameters:
1 - associationID
2 - status, type of event
3 - pointer to ULP data

ovoid (*communicationErrorNotif)(unsigned int, unsigned short, void*)
indicates that communication had an error. (chapter 10.2.F) Currently not implemented !?
Parameters:
1 - associationID
2 - status, type of error
3 - pointer to ULP data

ovoid (*restartNotif)(unsigned int, void*)
indicates that a RESTART has occurred. (chapter 10.2.G)
Parameters:
1 - associationID
2 - pointer to ULP data

ovoid (*shutdownCompleteNotif)(unsigned int, void*)
indicates that a SHUTDOWN has been COMPLETED. (chapter 10.2.H)
Parameters:
1 - associationID
2 - pointer to ULP data

Alphabetic index HTML hierarchy of classes or Java



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