Ben Bobbitt wrote:
All I have done is to make the UDP related changes to the lwipopts.h file, and then in the module that was previously a webserver example:
pxHTTPListener = netconn_new( NETCONN_UDP );

addr.addr = htonl(0xc0a80002);  // my local ip 192.168.0.2

netconn_bind(pxHTTPListener, &addr, webHttpPort );

addr.addr = htonl(0xc0a80065);  // ip of the remote system

netconn_connect(pxHTTPListener,&addr,webHttpPort);

You shouldn't need to do a connect if you receive. But if you do it should precisely match the remote end's IP/port. I doubt that your remote system 192.168.0.65 is sending _from_ webHttpPort, and is probably using a random high port number.

So just don't do the connect.

Jifl
--
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to