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.
_______________________________________________ tahoe-dev mailing list tahoe-dev@tahoe-lafs.org https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev