[tahoe-dev] Where does allmydata.client start listening?

Steven Lee elderry at outlook.com
Sun Jul 21 09:56:42 UTC 2013

First of all thanks for your help to my understanding of the source these days, now I am struggling to comprehend what is going to happen when a client was launched(Here I mean the client node's HTTP server). I learnt how twistd works then checked tahoe-client.tac. In my opinion, these lines:
> c = client.Client()
> application = service.Application("allmydata_client")
> c.setServiceParent(application)
showed that "c"(a Client class) appear as a service and was then registered to a twistd application. Then, according to the documents I found(for example: http://twistedmatrix.com/trac/):
> class Echo(protocol.Protocol):
>     def dataReceived(self, data):
>         self.transport.write(data)I can often find a function like "dataReceived" to tell me that the server starts to listen here. Now my question is: where does allmydata.Client start listening? Since I think this class "Client" implements a HTTP server, it should listen to a port and do something with the data it received, but I didn't find the location. If you find any point of my understanding is absurd, which I think is likely, please help me correct it. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20130721/ec6d9276/attachment.html>

More information about the tahoe-dev mailing list