[En-Nut-Discussion] detecting an unplugged network cable

Eric Haver havereric1 at gmail.com
Mon Nov 8 06:38:39 CET 2010


On Sun, Nov 7, 2010 at 7:47 PM, elbric0 <elbric0 at f-m.fm> wrote:

> Hi,
>
> I would like to detect if a network cable is unplugged at boot time and
> skip everything related to network when it is the case.
> NutRegisterDevice(&DEV_ETHER, 0, 0) returns an error after a long while when
> the cable is unplugged. It is possible to use that, but it is a little
> annoying as is makes boot time quite long. Is there another way to make the
> check or a way to make NutRegisterDevice return faster?
>
> Best Regards
>
> Jasmin
>


Hi Jasmin,

I always run it in a thread that loops until it gets plugged in.
Meanwhile, my application is checking a global variable to see if it
happened yet.

Cheers,

*E


> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>



-- 
*E
Eric Haver
412-223-7509



More information about the En-Nut-Discussion mailing list