@CHIP-RTOS C Library - TCP/IP API
PPP_Server_Pause
Pause/resume the PPP server task. int PPP_Server_Pause (int pause, int *error ); Parameters
pause
- 1: Pause the PPP server task
0:resume.
error
- Output parameter: Failure code:
-1 Action not allowed due to the current state of the PPP server
-2 PPP server is not running (disabled)
-3 PPP server timeout (should not happen)
0 on success.
Return Value
- 0 = success
Non-zero = Failure (see error
output parameter)
Comments
- If this API function is called with parameter pause=1,
the PPP server stops listening for incoming data at its RS232 port.
Also it stops sending of data via the serial port.
The RS232 port of the PPP server is now ready to
use for other purposes (e.g. for sending a SMS).
The server must be resumed by a call of this function with parameter
pause==0.
Please note:
If the PPP server was halted during a running PPP session, the
PPP session could be closed by the remote peer.
Open TCP connections via the PPP device are possibly closed by the peers.
The internal idle timeout counters are cleared, if the server stay at the HALT state.
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
| SC12 | SC13 | SC11 | SC1x3 | SC2x |
-
| n/a | n/a | n/a | V1.30 | V1.30 |
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|