Reputation: 525
I was surprised by the connect() function for UDP. I read online and realized that it enables the send() function which does not require a destination address. I would like to know what exactly does a UDP connect do in the kernel.
I found a similar question here UDP "Connect"-Speed in C# but maybe some detail was left out in the answer
Upvotes: 1
Views: 289
Reputation: 62613
There is nothing real fancy with connected udp sockets. It just means that socket name will include destination address, and as such, kernel will use this name when destination address is not provided. No more than typing shortcut for all intents and purposes.
Upvotes: 0