lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Asynchronous events.


From: address@hidden
Subject: Re: [lwip-users] Asynchronous events.
Date: Fri, 12 Sep 2008 18:40:04 +0200
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)

Nick Thomas wrote:
In the Win32 world I could us a call like:
iRc = WSAAsyncSelect( client.sock, hWnd, WM_WSASYNC,
FD_CONNECT|FD_READ|FD_CLOSE );

Which would provide a callback method to inform my app when some data
arrives. Is there anything like this in lwip?
You can use select(), but I don't think that is your problem. You should try and use an ethernet monitor like wireshark to see what is really being sent and received to/from lwIP. Also, enabling debug output in lwIP will help to trace down the problem. Note that both the netconn and the sockets API may not be used from the tcpip_thread while the raw API may only be used in this thread.

You didn't say on which platform your lwIP code runs, but if it is the win32, why not try one of the socket examples like the ping example app?

Simon




reply via email to

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