[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] pppSigHUP() or pppClose() ?
From: |
narke |
Subject: |
Re: [lwip-users] pppSigHUP() or pppClose() ? |
Date: |
Fri, 2 Sep 2011 10:34:23 +0800 |
On 2 September 2011 09:54, Paul Archer <address@hidden> wrote:
> On Thu, Sep 1, 2011 at 6:27 PM, narke <address@hidden> wrote:
>> In what case should I call pppSigHUP and what case call pppClose().
>> And, can I call both?
>
> pppSigHUP() is to be used when the serial link has been dropped. Maybe
> the communication to the modem has died. It just cleans up the local
> PPP state
>
> pppClose() is a friendly way to shutdown the link, and inform the
> other end that we have shutdown. It then also goes about cleaning up
> the internal state of PPP.
>
Can I understand so: after I detected the the physical line has
dropped (no carrier signal from the modem in my case), I should call
pppSigHUP(), and should not call pppClose() after that. Is this
right?
Thanks.
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (address@hidden)