twistedmatrix

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?ISO-8859-2?Q?Mariusz_=28Bia=B3ystok=29?=

    twistedmatrix

    Hi.
    I'm newbie in Twisted.
    Can anyone explain how does twisted server work? What happens after
    reactor.listenT CP 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
Working...