[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] question about PPP shutdown

From: yueyue papa
Subject: [lwip-users] question about PPP shutdown
Date: Thu, 20 Nov 2008 16:20:07 +0800

Hi All,
I am using lwIP + PPP on GPRS module, I use this API to detect whehter PPP is on/off
 * return 1 means PPP on.
int pppStatus(void)
 int status;


   return 1;
 return -1;

It could be detect the PPP is on, but I shutdown the PPP.

int main(void)
 int status;
  /* no stdio-buffering, please! */
  setvbuf(stdout, NULL,_IONBF, 0);


 int rc;
 printf("pppClose %d\n", rc);
   while( pppStatus() == 1)
    printf("wait PPP shutdown\n");
   printf("PPP really shutdown, i make shutdown gprs module +++, ath\n");
  return 0;

 But the pppStauts() always give me 1.

Where is the problem for I shutdown the PPP link?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]