Intermec ck1 Reference Guide

Page of 390
Chapter 2 — Configuring the CK1 System 
CK1 SDK Programmer’s Reference Manual 
85 
Reading PPP Configuration Files 
 
Purpose:  ReadPPPConfig( ) reads the PPP configuration files belonging to each 
connection type.  
ReadPPPCurrentType( ) reads active connect type which is set by 
WritePPPCurrentType( ). 
 
Syntax: 
int ReadPPPConfig(const int ConnectType, const struct 
structPPPConfig *PPPConfig)
 
int ReadPPPCurrentType(void) 
 On-CK1 Parameters:  For details, see “PPP API Illustrations” on page 80. 
 
On-CK1 Return: 
ReadPPPConfig( )
 
-1  Cannot read PPP configure 
0 Function 
succeeded 
ReadPPPCurrentType( ) 
-1 
Cannot read current  
1 to 4  Connection type 
 On-Host Parameters:  For details, see “PPP API Illustrations” on page 80. 
 
On-Host Return: 
ReadPPPConfig( )
 
Always return 0 
ReadPPPCurrentType( ) 
Always return 3 
Requesting PPP Status 
 
Purpose:  Get the current PPP status, which tells if the PPP connection is on or off. 
The status could also be 
PPP_STATE_CLIENT_NOTSTART
 before we 
attempt to dial a PPP server.  
 
Syntax: 
int RequestPPPStatus(void)
 
 On-CK1 Parameters: None 
 
On-CK1 Return: 
PPP_STATE_SYS_INIT
 
An initialization state, where PPP reads the configurations at this stage. 
The connection is not on. 
PPP_STATE_SERVER_NOTSTART 
A transient state when PPP is configured as PPP server. The connection 
is not on. 
PPP_STATE_SERVER_CONNECTING 
The PPP server is on and waiting for a connection. The connection is 
not on.