#1
  1. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155

    Check for Connection


    WHen connected to a socket in Python, is there a way to do a check every once in a while to check if the socket is still connected or whether there are any problems or not. Or would I just have to depend on traceback?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Location
    Albuquerque, New Mexico
    Posts
    137
    Rep Power
    11
    I dont think a function exists for what you want to do, but, there is the settimeout() function you could look into and see if that works.

IMN logo majestic logo threadwatch logo seochat tools logo