www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


PPP_Server_Suspend

Suspend the PPP server task.

int PPP_Server_Suspend (int timeoutsecs, int *error );

Parameters

timeoutsecs

Time-out in seconds.

error

Output parameter:  Failure code, 0 on success.

Return Value

0 = success
Non-zero = Failure (see error output parameter)

Comments

This API function closes an active (if there is one) connection and blocks any activity of the PPP server. The PPP server can be (re)activated by PPP_Server_Activate.
Note that the time-out value in timeoutsecs depends on your time-out entries for the modem commands specified in chip.ini.   If this call returns with -1, the most likely reason is that the modem commands are not finished after specified time-out.
After execution of this command the serial port and/or the connected modem can be used for othere purposes.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Related Topics

Chip.ini entry: PPPSERVER HANGUPTIMEOUTx time-out in seconds for wait on answer from modem

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    V1.00V1.00V1.00V0.90V1.00

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document