[issue18095] unable to invoke socket.connect with AF_UNSPEC

2013-07-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue18095] unable to invoke socket.connect with AF_UNSPEC

2013-07-06 Thread Martin Gergov
Martin Gergov added the comment: --- a/Modules/socketmodule.cTue Jul 02 09:07:53 2013 -0400 +++ b/Modules/socketmodule.cSat Jul 06 21:08:40 2013 +0300 @@ -3673,6 +3673,15 @@ { int how; int res; +struct sockaddr_in sin; +if (s->sock_type == SOCK_DGRAM){ +memset((

[issue18095] unable to invoke socket.connect with AF_UNSPEC

2013-05-29 Thread Roman Valov
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 sockaddr *)&sin, sizeof(sin))