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.
◆ DialPPP()
int DialPPP |
( |
int |
serial_port, |
|
|
pppoptions * |
popt, |
|
|
const char * |
dial_string |
|
) |
| |
Make an outgoing connection using the specified phone number.
- Parameters
-
serial_port | Serial port connected to the modem |
potp | Pointer to a structure containing the PPP options |
dial_string | Phone 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_port | Serial port connected to the modem |
potp | Pointer to a structure containing the PPP options |
dial_string | String to send out serial port when connection is initiatied |
- Returns
- PPP Return Codes
◆ food()
Start the PPP daemon and listen for incoming connections. Use when connected to a modem.
- Parameters
-
serial_port | Serial port to use for the PPP connection |
potp | Pointer to a structure containing the PPP options |
- Returns
- PPP Return Codes
- See also
- StartPPPDirect(), StopPPPDameon()
◆ GetPPPState()
◆ 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_port | Serial port to use for the PPP connection |
potp | Pointer to a structure containing the PPP options |
- Returns
- PPP Return Codes
- See also
- StartPPPDaemon(), StopPPPDameon()
◆ StopPPPDaemon()
Stop the PPP daemon.
- See also
- StartPPPDaemon(), StopPPPDameon()