| Summary |
#include <rtl.h>
BOOL ppp_is_up (void);
|
| Description | The ppp_is_up function determines the state of PPP link between the two modems. It returns __TRUE if the PPP link state is "network" and IP frames can be exchanged. The ppp_is_up function is in the RL-TCPnet library. The prototype is defined in rtl.h. note - You can call the ppp_is_up function when the PPP network daemon is either in client mode or in server mode.
- You can also use the ppp_is_up function to continuously monitor the state of the PPP link.
|
| Return Value | The ppp_is_up function returns __TRUE if the PPP link between the modems is up and functional. The function returns __FALSE if the PPP link is down. |
| See Also | ppp_close, ppp_connect, ppp_listen |
| Example |
#include <rtl.h>
void connect_soc (void) {
/* Connect TCP socket when PPP is up. */
if(ppp_is_up()) {
tcp_connect (socket_tcp, remip, 1000, 0);
}
}
|