Implementing UDP
Posted: Fri Feb 05, 2016 9:17 pm
Hi
I'm just starting to implement UDP on my OS, and I think I understand it correctly, I am just wondering what happens to the packets who are from addresses you don't recv_from. Does the tcp/ip stack just time them out and delete them after a little while? Or retain them in case you do a recv_from for that address later on? I imagine you wouldn't normally get random packets from internet addresses unless you were a server and expecting them or a client and someone was trying to do something sinister?
thanks..
I'm just starting to implement UDP on my OS, and I think I understand it correctly, I am just wondering what happens to the packets who are from addresses you don't recv_from. Does the tcp/ip stack just time them out and delete them after a little while? Or retain them in case you do a recv_from for that address later on? I imagine you wouldn't normally get random packets from internet addresses unless you were a server and expecting them or a client and someone was trying to do something sinister?
thanks..