Message131731
Running Windows 7 Enterprise 64 bit, and Python 7.2.1 64 bit Python failed to read and send UDP packages when ran in cmd.exe. This is not the case when ran with IDLE.
Example; two simple programs. First one listening to a UDP port
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(('', 10015))
reading data from socket and printing the received data, using;
data, addr = sock.recvfrom(1024)
this will lock, if not ran from IDLE.
Same for sending data, using;
sock.sendto(DATA_MESSAGE, (HOST, 10015))
this will work with both, but only send when running from IDLE. |
|
Date |
User |
Action |
Args |
2011-03-22 09:30:39 | Kristoffer.Nilsson | set | recipients:
+ Kristoffer.Nilsson |
2011-03-22 09:30:39 | Kristoffer.Nilsson | set | messageid: <1300786239.46.0.274643383137.issue11631@psf.upfronthosting.co.za> |
2011-03-22 09:30:38 | Kristoffer.Nilsson | link | issue11631 messages |
2011-03-22 09:30:38 | Kristoffer.Nilsson | create | |
|