twistedmatrix

Mariusz (Białystok) mariusz.karpowicz.84 at gmail.com
Thu Jul 17 10:46:35 EDT 2008


Hi.
I'm newbie in Twisted.
Can anyone explain how does twisted server work? What happens after
reactor.listenTCP running?

I've got many connections from one client (one connection-one socket),
each of them is served by class serve(Protocol).

every protocol owns transport
every transport owns socket

for me it's obvious that protocol returning data to client should use
it's own socket
but
transport.write(data) writes data into buffer
what happens then?

when my server handles two requests from one client (one by one) it
writes first data part to buffer, then second part ... and then writes
back to socket.
what more
it buffers data when I start many clients and sends it to last one.

help me? please?

Mariusz



More information about the Python-list mailing list