Message190308
| Author |
Roman.Valov |
| Recipients |
Roman.Valov |
| Date |
2013年05月29日.14:07:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1369836444.73.0.072481574082.issue18095@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|