[Twisted-Python] a question about self.factory in pb.Broker

A aldoogy at gmail.com
Mon Aug 25 12:22:10 MDT 2008


Thanks,
so out of curiosity , does Factory.buildProtocol() get called after 
PBClientFactory.clientConnectionMade(self,broker) ?
http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.1.0/twisted/spread/pb.py#L1088

Is the broker parameter a reference to the class rather than an instance 
of Broker ?

A.




Jean-Paul Calderone wrote:
> On Mon, 25 Aug 2008 17:43:27 +0100, A <aldoogy at gmail.com> wrote:
>> I'm attempting to build a Twisted pb client in Actionscript.
>> or at least enough to act as the client in this example . .
>> http://twistedmatrix.com/projects/core/documentation/howto/pb- 
>> cred.html#auto18
>>
>> I'm a bit stuck here . .
>>
>> [snip]
>>
>>
>> where should  self.factory be set ?
>> what is self.factory ? PbClientFactory ?
>>
>
> See 
> http://twistedmatrix.com/trac/browser/trunk/twisted/internet/protocol.py#L87 
>
>
> Jean-Paul
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>





More information about the Twisted-Python mailing list