socket programming question

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

    #1

    socket programming question

    Hello All,
    My question is, is it possible to make python do some other
    processing while it is waiting for a socket to timeout?

    thanks a lot!
    Kiran

  • Irmen de Jong

    #2
    Re: socket programming question

    Kiran wrote:[color=blue]
    > Hello All,
    > My question is, is it possible to make python do some other
    > processing while it is waiting for a socket to timeout?[/color]

    sure, you have to use threads and/or use asynchronous socket
    programming. Google is your friend.

    --Irmen

    Comment

    • Grant Edwards

      #3
      Re: socket programming question

      On 2006-06-20, Kiran <Kiran.Karra@gm ail.com> wrote:
      [color=blue]
      > is it possible to make python do some other processing while
      > it is waiting for a socket to timeout?[/color]

      Yes.

      You can either use threads or select.

      Or you can use one of the async server frameworks like twisted.

      --
      Grant Edwards grante Yow! I'd like MY data-base
      at JULIENNED and stir-fried!
      visi.com

      Comment

      Working...