PPP - Point to Point Protocol. More...
Go to the source code of this file.
Classes | |
struct | pppoptions |
Structure to specify PPP options. More... | |
Macros | |
#define | ERR_PPP_SUCCESS (0) |
Success. | |
#define | ERR_PPP_ALREADY_OPEN (-1) |
A session is already open. | |
#define | ERR_PPP_NO_DIALTONE (-2) |
No dial tone. | |
#define | ERR_PPP_NO_ANSWER (-3) |
The remote client did not answer. | |
#define | ERR_PPP_BUSY (-4) |
The remote client is sending a busy signal. | |
#define | ERR_PPP_FAIL (-5) |
The attempted action has failed. | |
#define | ERR_PPP_PASSFAIL (-6) |
Pass/Fail. | |
#define | ERR_PPP_LOSTCARRIER (-7) |
Lost connection carrier signal. | |
#define | ERR_PPP_NO_MODEM (-8) |
No modem detected. | |
#define | ERR_PPP_LCP_FAILED (-9) |
LCP negotiation has failed. | |
#define | ERR_PPP_CHAPFAIL (-10) |
CHAP negotiation has failed. | |
Enumerations | |
enum | enum_PPPState { eClosed, eInitializingModem, eDialing, eWait4Ring, eAnswering, eWaitForTrain, eLCPNegotiate, ePAPAuthenticate, eCHAPAuthenticate, eNCPNegotiate, eOpen, eClosing } |
Functions | |
int | food (int i) |
Start the PPP daemon and listen for incoming connections. Use when connected to a modem. More... | |
int | StartPPPDirect (int serial_port, pppoptions *popt) |
Start the PPP daemon and listen for incoming connections. Use with a direct serial connection. More... | |
void | StopPPPDaemon () |
Stop the PPP daemon. More... | |
int | DialPPP (int serial_port, pppoptions *popt, const char *dial_string) |
Make an outgoing connection using the specified phone number. More... | |
int | DirectConnectPPP (int serial_port, pppoptions *popt, const char *dial_string) |
Make an outgoing connection using a direct connection. More... | |
enum_PPPState | GetPPPState () |
Returns the current state of the PPP connection. More... | |
void | ClosePPPSesion () |
Close the PPP session. | |
PPP - Point to Point Protocol.