diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-02-23 21:47:18 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-23 22:52:16 +0000 |
commit | c42f973180d2e2dd959cfd416bbd5a71aa60cffa (patch) | |
tree | 1cf3cde6f4a53538cb5b4faae44a1cf5cdf6d03d /bitbake/lib/bb/server/xmlrpc.py | |
parent | 19089aca83ce00a05dee60b2f40bad87c398fe39 (diff) | |
download | poky-c42f973180d2e2dd959cfd416bbd5a71aa60cffa.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().
(Bitbake rev: c8e19c5c389efc06696084c6f9439ba75472c5b7)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server/xmlrpc.py')
-rw-r--r-- | bitbake/lib/bb/server/xmlrpc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py index c53cee488a..eff80098a2 100644 --- a/bitbake/lib/bb/server/xmlrpc.py +++ b/bitbake/lib/bb/server/xmlrpc.py | |||
@@ -247,9 +247,9 @@ class BitbakeServerInfo(): | |||
247 | self.port = port | 247 | self.port = port |
248 | 248 | ||
249 | class BitBakeServerConnection(): | 249 | class BitBakeServerConnection(): |
250 | def __init__(self, serverinfo): | 250 | def __init__(self, serverinfo, clientinfo=("localhost", 0)): |
251 | self.connection = _create_server(serverinfo.host, serverinfo.port) | 251 | self.connection = _create_server(serverinfo.host, serverinfo.port) |
252 | self.events = uievent.BBUIEventQueue(self.connection) | 252 | self.events = uievent.BBUIEventQueue(self.connection, clientinfo) |
253 | for event in bb.event.ui_queue: | 253 | for event in bb.event.ui_queue: |
254 | self.events.queue_event(event) | 254 | self.events.queue_event(event) |
255 | 255 | ||