lwip-users
[Top][All Lists]
Advanced

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

AW: [lwip-users] tcp connection state from app


From: Zschocke, Florian
Subject: AW: [lwip-users] tcp connection state from app
Date: Wed, 16 Apr 2003 07:57:56 +0200

Marc Boucher wrote on Dienstag, 15. April 2003 22:43:

> or recv with MSG_PEEK? (not yet supported by lwIP, I know)

I would say the "unixish" method would indeed be to use MSG_PEEK. 

> You are right about exceptfds, but a SIGIO-like asynchronous
> notification mechanism is probably what we need.

The problem is that a full SIGIO implementation is useless with TCP as
Stevens states. The signal would be generated too often. What you would have
to so is generate a signal only when the connection gets closed by the other
end. 
We have implemented a SIGIO-like mechnism in lwIP which calls a callback
function when data arrives but this is only used on UDP sockets.

Florian.




reply via email to

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