asynchat + send problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andreas R.

    #1

    asynchat + send problem

    Hello,

    I'm using Python's asynchat for networking. If I invoke the send()
    method of the asynchat module, only a single send operation is possible
    at any given time. If I call it more than once, only the first call is
    registered at the other client.

    So how do I fix this? Do I have to use select etc.?

    The source code is here:


    Thanks in advance!

    Andreas R.

  • Fredrik Lundh

    #2
    Re: asynchat + send problem

    "Andreas R." <andreas@openrt s.org> wrote:
    [color=blue]
    > I'm using Python's asynchat for networking. If I invoke the send()
    > method of the asynchat module, only a single send operation is possible
    > at any given time. If I call it more than once, only the first call is
    > registered at the other client.[/color]

    use "push" to queue outgoing data, not "send". see



    for a few examples.

    </F>



    Comment

    • Andreas R.

      #3
      Re: asynchat + send problem

      Fredrik Lundh wrote:[color=blue]
      > "Andreas R." <andreas@openrt s.org> wrote:
      >[color=green]
      >> I'm using Python's asynchat for networking. If I invoke the send()
      >> method of the asynchat module, only a single send operation is possible
      >> at any given time. If I call it more than once, only the first call is
      >> registered at the other client.[/color]
      >
      > use "push" to queue outgoing data, not "send". see
      >
      > http://www.effbot.org/librarybook/asynchat.htm
      >
      > for a few examples.[/color]

      Thanks. This works.

      Comment

      Working...