mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-02 17:20:50 +00:00
start client framework
This commit is contained in:
parent
36969e964b
commit
174a45e106
9
allmydata/client.py
Normal file
9
allmydata/client.py
Normal 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
10
client.tac
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user