Missing some socket.* setsockopt values
Yuri
yuri at rawbw.com
Mon Apr 6 05:41:05 UTC 2015
Both python 2 and 3 are missing some setsockopt values, for example in
the code below:
They all come from /usr/include/netinet/in.h, but IP_MULTICAST_LOOP=11
is still in python, but IP_ADD_MEMBERSHIP=12 isn't.
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_VIF, 1)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_RSVP_ON, 1)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_PORTRANGE, 1)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_RECVIF, 1)
Yuri
More information about the freebsd-python
mailing list