[Twisted-Python] Sending Data via a client
radix at twistedmatrix.com
Fri Oct 12 16:49:34 EDT 2007
On 10/12/07, Simon Pickles <sipickles at hotmail.com> wrote:
> Twisted is event driven.
> So how do I send Data through a client? All the example demonstrate is
> how to receive events.
I don't know what you mean by "through", but whether you mean "to" or
"from" the answer is the same: transport.write. ('transport' will be
an attribute of your Protocol instances).
> I suppose what I am asking is how do I refer to a client protocol from
> another class?
This is really just a basic program structuring question, and not
really related to Twisted.
International Man of Twistery
More information about the Twisted-Python