| Reply | « Previous Thread | Next Thread » |
|
hi friends
how to make a timeout on the socket to avoid being hung in the send () and the recv ()? thanks |
|
Join Date: Nov 2007
Posts: 318
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
|
Quote:
Code:
from socket import * s = socket(AF_INET, SOCK_STREAM) s.settimeout(1.5) # one second and a half Bye Still recommending "Foundations of Python Network Programming". Many insights inside ! :-D Marcelo Barros Nokia E71, N800, N95 and XM 5800 http://www.croozeus.com http://wordmobi.wordpress.com http://jedizone.wordpress.com
Last edited by marcelobarrosalmeida : 2009-02-05 at 12:30.
|
|
Quote:
Quote:
Hope that this may be help Pavan Pareta http://www.croozeus.com/started.htm |
| pavan.pareta |
| View Public Profile |
| Find all posts by pavan.pareta |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| [announce] tsocket: socket module + timeout on connect | lfd | Python | 6 | 2007-06-10 14:05 |
| How to get the default timeout time of the socket which use RFCOMM protocol? | rensijie | Symbian Networking & Messaging | 0 | 2006-08-22 11:41 |
| How to get the default timeout time of the socket which use RFCOMM protocol?? | rensijie | General Symbian C++ | 0 | 2006-08-22 11:39 |
| problem in persistant socket connection | poms4symbian | Browsing and Mark-ups | 0 | 2006-01-03 14:23 |
| TCP Socket default timeout | barre30 | Mobile Java Networking & Messaging & Security | 0 | 2004-08-06 12:30 |