Everything is basically in place for at least live text. For some reason spawning the flowgraph is broken.
This commit is contained in:
@@ -25,9 +25,9 @@ from string import split, join
|
||||
from datetime import *
|
||||
|
||||
class modes_raw_server:
|
||||
def __init__(self):
|
||||
def __init__(self, port):
|
||||
self._s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self._s.bind(('', 9988))
|
||||
self._s.bind(('', port))
|
||||
self._s.listen(1)
|
||||
self._s.setblocking(0) #nonblocking
|
||||
self._conns = [] #list of active connections
|
||||
|
||||
@@ -27,11 +27,11 @@ from datetime import *
|
||||
from modes_exceptions import *
|
||||
|
||||
class modes_output_sbs1(modes_parse.modes_parse):
|
||||
def __init__(self, mypos):
|
||||
def __init__(self, mypos, port):
|
||||
modes_parse.modes_parse.__init__(self, mypos)
|
||||
self._s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self._s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
self._s.bind(('', 30003))
|
||||
self._s.bind(('', port))
|
||||
self._s.listen(1)
|
||||
self._s.setblocking(0) #nonblocking
|
||||
self._conns = [] #list of active connections
|
||||
|
||||
Reference in New Issue
Block a user