summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/uievent.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-02-23 21:47:18 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 22:45:32 +0000
commitc8e19c5c389efc06696084c6f9439ba75472c5b7 (patch)
tree2de50e261cbc92ff0574a2dcdb3c4e75513d7e96 /lib/bb/ui/uievent.py
parent95b97d2dc6466ea3d99371f5b5bd68f6f3c99074 (diff)
downloadbitbake-c8e19c5c389efc06696084c6f9439ba75472c5b7.tar.gz
bitbake: Add client socket info for BitBakeServerConnection
In server/client split model, the client will bind to a specific address and port. We need to pass the values to BitBakeServerConnection(). Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/uievent.py')
-rw-r--r--lib/bb/ui/uievent.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bb/ui/uievent.py b/lib/bb/ui/uievent.py
index 0e738174e..28817a22f 100644
--- a/lib/bb/ui/uievent.py
+++ b/lib/bb/ui/uievent.py
@@ -28,13 +28,14 @@ import socket, threading, pickle
from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
class BBUIEventQueue:
- def __init__(self, BBServer):
+ def __init__(self, BBServer, clientinfo=("localhost, 0")):
self.eventQueue = []
self.eventQueueLock = threading.Lock()
self.eventQueueNotify = threading.Event()
self.BBServer = BBServer
+ self.clientinfo = clientinfo
self.t = threading.Thread()
self.t.setDaemon(True)
@@ -72,7 +73,7 @@ class BBUIEventQueue:
def startCallbackHandler(self):
- server = UIXMLRPCServer()
+ server = UIXMLRPCServer(self.clientinfo)
self.host, self.port = server.socket.getsockname()
server.register_function( self.system_quit, "event.quit" )
@@ -98,7 +99,7 @@ class BBUIEventQueue:
class UIXMLRPCServer (SimpleXMLRPCServer):
- def __init__( self, interface = ("localhost", 0) ):
+ def __init__( self, interface ):
self.quit = False
SimpleXMLRPCServer.__init__( self,
interface,