ferleal / pytuio

Automatically exported from code.google.com/p/pytuio
MIT License
0 stars 0 forks source link

socket module has not SO_REUSEPORT attribute on WindowsXP #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've gotten the same error. I am using CCV1.32, WindowsXP, nodebox,Pyhon 2.6
nodebox is from http://www.cityinabottle.org/nodebox/

The  fllowing is my change in tuio\__init__.py

try:
    self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
except AttributeError:
    self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

But It doesn't work yet .

Original issue reported on code.google.com by guoguofi...@gmail.com on 4 Jan 2011 at 3:47

GoogleCodeExporter commented 8 years ago
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

It's ok.

But my example run slowly

Original comment by guoguofi...@gmail.com on 4 Jan 2011 at 5:52