[Twisted-Python] Factory question

Gabriel Rossetti mailing_lists at evotex.ch
Wed Feb 27 03:32:01 EST 2008


Hello everyone,

I have a small question, I have a service which needs to sometimes send 
data (without having received any prior to sending) and sometimes 
receive data, which is better :

1) create a factory that inherits from ServerFactory and ClientFactory, 
thus it can listen and send data

2) create a factory that inherits from ServerFactory only and uses a 
single-use client (ClientCreator, as shown in the writing clients howto) 
when it needs to send data

Thank you!
Gabriel




More information about the Twisted-Python mailing list