New submission from Roman Valov :
Please check the attached source code.
I have to implement an UDP server listening on all interfaces and able to
detect what is the local address is used to communicate with remote address. In
order to do this I'm using a temporary socket connected to
New submission from Roman Valov:
There is a way to "disconnect" UDP socket
that was previously "connected" to specific
remote endpoint in C:
struct sockaddr_in sin;
memset((char *)&sin, 0, sizeof(sin));
sin.sin_family = AF_UNSPEC;
connect(fd, (struct soc