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
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users