On Nov 18, 10:55 am, MRAB wrote:
> On 18/11/2011 15:48, Junfeng Hu wrote:
>
>
>
>
>
> > Thanks
> > Yes, I had tried this before, so you could find that I comment the line
> > sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> > Here is th
Hi Chris.
The socket only binded once. That's the problem I'm puzzleing, I think it may a
bug of multiprocessing in windows, or something I missed.
--
http://mail.python.org/mailman/listinfo/python-list
And actually ,the socket hadn't been used in this script.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks
Yes, I had tried this before, so you could find that I comment the line
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
Here is the results.
D:\Python test>mythread2.py
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\multiprocessing\forking.py",
I did a test on linux, it works well, so the issue is related to os.
--
http://mail.python.org/mailman/listinfo/python-list
Hi All, I'm trying to leverage my core i5 to send more UDP packets with
multiprocssing, but I found a interesting thing is that the socket.bind is
always reporting 10048 error even the process didn't do anything about the
socket.
Here is the script
import threading,socket,random,pp,os
import ti