Message190308
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 sockaddr *)&sin, sizeof(sin));
However in this is not available in python, since connect
accepts only (host, port) as a parameter for UDP socket.
It's possible to drop "port" connection with port=0,
however I can't find a way to drop "host" connection. |
|
Date |
User |
Action |
Args |
2013-05-29 14:07:24 | Roman.Valov | set | recipients:
+ Roman.Valov |
2013-05-29 14:07:24 | Roman.Valov | set | messageid: <1369836444.73.0.072481574082.issue18095@psf.upfronthosting.co.za> |
2013-05-29 14:07:24 | Roman.Valov | link | issue18095 messages |
2013-05-29 14:07:24 | Roman.Valov | create | |
|