]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
start client framework
authorBrian Warner <warner@lothar.com>
Thu, 30 Nov 2006 22:14:47 +0000 (15:14 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 30 Nov 2006 22:14:47 +0000 (15:14 -0700)
allmydata/client.py [new file with mode: 0644]
client.tac [new file with mode: 0644]

diff --git a/allmydata/client.py b/allmydata/client.py
new file mode 100644 (file)
index 0000000..cadbd28
--- /dev/null
@@ -0,0 +1,9 @@
+
+from foolscap import Tub
+from twisted.application import service
+
+class Client(service.MultiService):
+    def __init__(self, queen_pburl):
+        service.MultiService.__init__(self)
+        self.queen_pburl = queen_pburl
+        self.tub = Tub()
diff --git a/client.tac b/client.tac
new file mode 100644 (file)
index 0000000..eda14e6
--- /dev/null
@@ -0,0 +1,10 @@
+# -*- python -*-
+
+from allmydata import client
+from twisted.application import service
+
+queen_pburl = ""
+c = client.Client(queen_pburl)
+
+application = service.Application("allmydata_client")
+c.setServiceParent(application)