lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] how lwip know internet cable is unplug


From: vincent cui
Subject: Re: [lwip-users] how lwip know internet cable is unplug
Date: Mon, 5 Sep 2011 03:23:11 +0000

All

I write a simple routine to deal with it , it works well, 
static uint32_t ETH_GetNetifUporDown (void)
{
        return (ETH_ReadPHYRegister(PHY_ADDRESS, PHY_BSR) & PHY_Linked_Status) 
? 1:0;
}

Why do you use callback to handle it ?

锘?Vincent Cui
Sr.Firmware Engineer
Mobile: +8613482482211
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: address@hidden
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 
200233
http://www.enlogic.com
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Kieran Mansley
Sent: 2011年9月2日 19:03
To: address@hidden
Subject: Re: [lwip-users] how lwip know internet cable is unplug

On Fri, 2011-09-02 at 05:26 +0000, vincent cui wrote:
> When unplug internet cable, how lwip deal it ?

It doesn't.  Whether the link is up or not is of no real interest to a
TCP/IP stack.  It will just try to send packets, and the lower layers
(e.g. the driver you're using) have to deal with the link status.

Kieran


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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