start client framework

This commit is contained in:
Brian Warner 2006-11-30 15:14:47 -07:00
parent 36969e964b
commit 174a45e106
2 changed files with 19 additions and 0 deletions

9
allmydata/client.py Normal file
View File

@ -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()

10
client.tac Normal file
View File

@ -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)