summaryrefslogtreecommitdiffstats
path: root/lib/bb/server/xmlrpc.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-02-23 21:47:17 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 22:45:12 +0000
commit95b97d2dc6466ea3d99371f5b5bd68f6f3c99074 (patch)
tree8a9a51b34bf49a1bfb8073896549c688d57e1b9c /lib/bb/server/xmlrpc.py
parent9020c2d4476766f63ff7e024bbd99043d06feefc (diff)
downloadbitbake-contrib-95b97d2dc6466ea3d99371f5b5bd68f6f3c99074.tar.gz
bitbake: add -B option to bind with interface
When start bitbake as a server only process, we need to assign certain interface to it. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/xmlrpc.py')
-rw-r--r--lib/bb/server/xmlrpc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/server/xmlrpc.py b/lib/bb/server/xmlrpc.py
index b5980c608..c53cee488 100644
--- a/lib/bb/server/xmlrpc.py
+++ b/lib/bb/server/xmlrpc.py
@@ -163,7 +163,7 @@ class BitBakeXMLRPCServer(SimpleXMLRPCServer):
# remove this when you're done with debugging
# allow_reuse_address = True
- def __init__(self, interface = ("localhost", 0)):
+ def __init__(self, interface):
"""
Constructor
"""
@@ -267,8 +267,8 @@ class BitBakeServerConnection():
pass
class BitBakeServer(object):
- def initServer(self):
- self.server = BitBakeXMLRPCServer()
+ def initServer(self, interface = ("localhost", 0)):
+ self.server = BitBakeXMLRPCServer(interface)
def addcooker(self, cooker):
self.cooker = cooker