Tkinter & socket question

Constantinos A. Kotsokalis C.Kotsokalis at ece.ntua.gr
Fri Jun 18 19:29:51 EDT 1999


On Fri, 18 Jun 1999 21:54:11 GMT, Def P wrote:
>2) I need to poll the connection periodically, say, every second. This would
>not have been a problem in console mode... I don't know how to do this in a
>Tkinter environment though. So, how can I do something every second (or every
>n milliseconds, or whatever the time span may be)? Are threads the way to go?
>I haven't used them before.

Well you can always check for a recv() that returns a zero-length
buffer. That means that the other end has closed connection.

  --C

-- 
Constantinos A. Kotsokalis || C.Kotsokalis at ece.ntua.gr
National Technical University of Athens - GREECE
Electrical and Computer Engineering Department
"Bus error -- driver executed."




More information about the Python-list mailing list