Configures the SCTP layer with the values contained in the TSAP configuration structure.
SCTP_STATUS TXSCTPFUNC SctpSetTSapCfg ( U8 board, SCTPTSapCfg *pTSapCfg)
Argument |
Description |
board |
TX board number on which the desired SCTP layer resides. Valid range is 1 through MAXBOARD (currently 32). |
pTSapCfg |
Pointer to the SCTPTSapCfg structure that contains the values to be configured. For information, see SCTPTSapCfg. |
Return value |
Description |
SCTP_SUCCESS |
|
SCTP_BOARD |
Invalid board number. |
SCTP_DRIVER |
CPI driver error. |
SCTP_HANDLE |
SctpMgmtInit was not called for the specified board. |
SCTP_PARAM |
Invalid parameter. |
SCTP_RESPONSE |
Incorrect response from the board. |
SCTP_TIMEOUT |
No response from the board. |
Call this function any time after you configure an SCT SAP, but before an application attempts to send data for transaction processing.
An application must set the field values in the SCTPTSapCfg structure before calling SctpSetTSapCfg. Set the values in any of the following ways:
Call SctpInitTSapCfg to set the fields to default values, and then pass the SCTPTSapCfg structure.
Set each field value from within the application.
Call SctpInitTSapCfg and then override specific field values before passing the SCTPTSapCfg structure.
For more information, see SCTP TSAP configuration.