GprsPpp Class Reference

GPRS PPP control class. More...

#include <GprsPpp.h>

List of all members.

Static Public Member Functions

static bool start (const char *serialPort, GPRSPPP_PARAMETERS *pParams)
 Start GPRS PPP.
static bool stop ()
 Stop GPRS PPP.
static bool isRunning ()
 Check GPRS PPP status.

Detailed Description

GPRS PPP control class.

Implements a number of static functions to simplify management of the GPRS PPP daemon. The GPRS PPP daemon (pppd) must be bound to a certain serial port, either physical or virtual. The GPRS modem serial port must be used as the physical port. Alternatively, GSM 07.10 multiplexer may provide a virtual port.


Member Function Documentation

bool GprsPpp::isRunning (  )  [static]

Check GPRS PPP status.

Returns:
Returns true if GPRS PPP is active.
bool GprsPpp::start ( const char *  serialPort,
GPRSPPP_PARAMETERS pParams 
) [static]

Start GPRS PPP.

Starts the GPRS PPP daemon (pppd). After the call returns successfully, full IP connectivity should be available in the system via the ppp0 network interface.

Parameters:
serialPort Points to a null-terminated string containing the serial port name. The port may be either physical or virtual.
pParams Points to GPRS PPP configuration structure.
Returns:
Returns true if the PPP daemon was started successfully and ppp0 interface is available.
bool GprsPpp::stop (  )  [static]

Stop GPRS PPP.

Stops the GPRS PPP daemon (pppd), terminates PPP mode and releases the selected serial port.

Returns:
Returns true if the PPP daemon was stopped successfully.

The documentation for this class was generated from the following files:
Generated on Wed Oct 20 11:13:44 2010 for libspatha by  doxygen 1.6.3