NetBurner 3.1
PPP - Point to Point Protocol

Modules

 PPP Return Codes
 
 The current state of the PPP connection
 

Classes

struct  pppoptions
 Structure to specify PPP options. More...
 

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.
 

Detailed Description

Like Ethernet, Point to Point Protocol (PPP) is a data link layer which transfers data between nodes on a network. The main difference is that PPP is used between two end points, whereas Ethernet is a multidrop configuration.

PPP can be used over many types of physical networks, including: fiber, phone line, serial cable and cellular telephone. Once you have created a PPP connection to or from your NetBurner device you can use it with all the standard network applications such as the web server, tcp, udp, ftp, email, etc.

Internet Service Providers (ISP) can implement PPP with many different options that vary from ISP to ISP. The PPP example program included in the development kit examples directory specifies the most common ISP options and can be used as a code example to specify any specific options you may need in your application.

Function Documentation

◆ DialPPP()

int DialPPP ( int  serial_port,
pppoptions popt,
const char *  dial_string 
)

Make an outgoing connection using the specified phone number.

Parameters
serial_portSerial port connected to the modem
potpPointer to a structure containing the PPP options
dial_stringPhone number string
Returns
PPP Return Codes

◆ DirectConnectPPP()

int DirectConnectPPP ( int  serial_port,
pppoptions popt,
const char *  dial_string 
)

Make an outgoing connection using a direct connection.

Parameters
serial_portSerial port connected to the modem
potpPointer to a structure containing the PPP options
dial_stringString to send out serial port when connection is initiatied
Returns
PPP Return Codes

◆ food()

int food ( int  i)

Start the PPP daemon and listen for incoming connections. Use when connected to a modem.

Parameters
serial_portSerial port to use for the PPP connection
potpPointer to a structure containing the PPP options
Returns
PPP Return Codes
See also
StartPPPDirect(), StopPPPDameon()

◆ GetPPPState()

enum_PPPState GetPPPState ( )

Returns the current state of the PPP connection.

Returns
The current state of the PPP connection

◆ StartPPPDirect()

int StartPPPDirect ( int  serial_port,
pppoptions popt 
)

Start the PPP daemon and listen for incoming connections. Use with a direct serial connection.

Parameters
serial_portSerial port to use for the PPP connection
potpPointer to a structure containing the PPP options
Returns
PPP Return Codes
See also
StartPPPDaemon(), StopPPPDameon()

◆ StopPPPDaemon()

void StopPPPDaemon ( )

Stop the PPP daemon.

See also
StartPPPDaemon(), StopPPPDameon()