[En-Nut-Discussion] Network Link state on at91_emac and others

Harald Kipp harald.kipp at egnite.de
Wed Sep 17 09:34:45 CEST 2008


Henrik Maier wrote:
>> As previously stated I'm aware, that some applications need to be
>> informed about the link status. If we implement a callback registration,
>> the application may decide about what to do in case of a link loss.
> 
> I am thinking practical here now. Would NutTcpReceive() return with an
> appropriate return code if such link detection is implemented?

NutTcpReceive() will return -1, NutTcpError() should return the specific 
error code.

Harald



More information about the En-Nut-Discussion mailing list