Skip to content

Commit 9e5a096

Browse files
committed
Merge pull request #1 from SimonRohou/master
Update MOOSCommClient (self.sock) to run with a specific port
2 parents dbd95b2 + 6f4509c commit 9e5a096

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/MOOSCommClient.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self):
4545
self.onConnectCallBack = None
4646
self.onMailCallBack = None
4747

48-
self.sock = XPCTcpSocket(9000)
48+
self.sock = XPCTcpSocket(self.port)
4949
self.comms = MOOSCommObject()
5050

5151
self.m_Outbox_Lock = RLock()
@@ -122,6 +122,7 @@ def Run( self, host, port, myName, fundamentalFreq=5):
122122
"""
123123
self.host = host
124124
self.port = port
125+
self.sock = XPCTcpSocket(self.port)
125126
self.m_sMyName = myName
126127
self.mFundamentalFrequency = fundamentalFreq
127128
self.daemon = True

0 commit comments

Comments
 (0)