[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-devel] lwIP UDP and TFTP
From: |
Zschocke, Florian |
Subject: |
RE: [lwip-devel] lwIP UDP and TFTP |
Date: |
Wed, 26 Nov 2003 14:04:52 +0100 |
Atte Kojo wrote on Wednesday, November 26, 2003 1:49 PM:
> I have to netconn_connect() to the tftp server address:port in
> order to send a request there.
I suspect you use the raw API? If you take a look at the lwip_sendto()
function in sockets.c, you will see that for an unconnected send (which
sendto is) the code will do a netconn_connect(), send the packet and do an
netconn_disconnect() directly afterwards. I would consider this a cleaner
solution that modifying the code to not set UDP_FLAGS_CONNECTED.
Coming to think of it, has anyone ever checked if this could lead to a race
condition causing packet loss when an interrupt delivers an incoming packet
while UDP_FLAGS_CONNECTED is still set?
Florian
- [lwip-devel] lwIP UDP and TFTP, Atte Kojo, 2003/11/26
- RE: [lwip-devel] lwIP UDP and TFTP, Zschocke, Florian, 2003/11/26
- RE: [lwip-devel] lwIP UDP and TFTP, Zschocke, Florian, 2003/11/26
- RE: [lwip-devel] lwIP UDP and TFTP,
Zschocke, Florian <=