Commit 3155cb61 authored by 's avatar

Fixed fix to select_trigger to allow multiple servers on non-posix systems.

parent 316e6fb4
# -*- Mode: Python; tab-width: 4 -*-
VERSION_STRING = "$Id: select_trigger.py,v 1.7 1999/10/29 15:04:27 brian Exp $"
VERSION_STRING = "$Id: select_trigger.py,v 1.8 1999/10/29 15:11:58 brian Exp $"
import asyncore
import asynchat
......@@ -104,17 +104,17 @@ else:
# tricky: get a pair of connected sockets
host='127.9.9.9'
port=19950
port=19999
while 1:
try:
self.address=(host, port)
a.bind(self.address)
break
except:
if port >= 19999:
if port <= 19950:
raise 'Bind Error', 'Cannot bind trigger!'
port=port + 1
a.bind (self.address)
port=port - 1
a.listen (1)
w.setblocking (0)
try:
......
# -*- Mode: Python; tab-width: 4 -*-
VERSION_STRING = "$Id: select_trigger.py,v 1.7 1999/10/29 15:04:27 brian Exp $"
VERSION_STRING = "$Id: select_trigger.py,v 1.8 1999/10/29 15:11:58 brian Exp $"
import asyncore
import asynchat
......@@ -104,17 +104,17 @@ else:
# tricky: get a pair of connected sockets
host='127.9.9.9'
port=19950
port=19999
while 1:
try:
self.address=(host, port)
a.bind(self.address)
break
except:
if port >= 19999:
if port <= 19950:
raise 'Bind Error', 'Cannot bind trigger!'
port=port + 1
a.bind (self.address)
port=port - 1
a.listen (1)
w.setblocking (0)
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment