王利强
2015-07-13 02:57:59 UTC
-------- Forwarding messages --------
From: "johnny_wang" <***@psf.upfronthosting.co.za>
Date: 2015-07-10 17:33:58
To: ***@163.com
Subject: [issue570] [windows server 2003]Datagram Socket on windows server 2003 (python winsock not work well))
New submission from johnny_wang:
when use: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)
s.bind(('', 1029))
while True
try :
databuffer, (raddress, rport) = s.recvfrom(1024)
except socket.timeout:
logging.error("Write timeout on socket")
continue
databuffer is nothing in it!
http://stackoverflow.com/questions/31316216/how-to-detect-or-capture-udp-packet-on-a-local-port69-with-python-on-windows
----------
messages: 2978
nosy: johnny_wang
priority: bug
status: unread
title: [windows server 2003]Datagram Socket on windows server 2003 (python winsock not work well))
_______________________________________________________
PSF Meta Tracker <***@psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue570>
_______________________________________________________
From: "johnny_wang" <***@psf.upfronthosting.co.za>
Date: 2015-07-10 17:33:58
To: ***@163.com
Subject: [issue570] [windows server 2003]Datagram Socket on windows server 2003 (python winsock not work well))
New submission from johnny_wang:
when use: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)
s.bind(('', 1029))
while True
try :
databuffer, (raddress, rport) = s.recvfrom(1024)
except socket.timeout:
logging.error("Write timeout on socket")
continue
databuffer is nothing in it!
http://stackoverflow.com/questions/31316216/how-to-detect-or-capture-udp-packet-on-a-local-port69-with-python-on-windows
----------
messages: 2978
nosy: johnny_wang
priority: bug
status: unread
title: [windows server 2003]Datagram Socket on windows server 2003 (python winsock not work well))
_______________________________________________________
PSF Meta Tracker <***@psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue570>
_______________________________________________________