twistedmatrix

  • Thread starter Mariusz (Bia³ystok)
  • Start date
M

Mariusz (Bia³ystok)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top