[Twisted-Python] newbie help (fwd)
zunbeltz at lcdx00.wm.lc.ehu.es
Tue Jun 21 04:30:49 EDT 2005
I have the following problem.
I'm developing a GUI program (wxPython). This program has to comunicate
(TCP) whit other program that controls a laboratory machine to do a
measurement. I have a dialog box, wiht two buttoms "Start measurement" and
"Stop". "Start" executes a function that do the measurement in the
1) My program send a socket.
2) The other program recives it an send confirmation.
3) My program waits for the confirmation and send the next when
This comunication is done in a new thread not to frezee the GUI.
The problem is that when "Stop" is done (it kills the thread) some
confirmation sockets are mixed (are not receibed in the correct order
although i use tcp).
I have been told not to do comunication in a new thread; instead, I should
use asyncronus comunication (asyncore or twisted).
How can i do that with twisted?
How can i implement this asyncronous comunication and the ability to
stop this long run funciton (the measurement can take hours or days, so
i need a way to stop it)?
Can twisted garantee that the confirmation socket will arrive in the
correct order (one after each sended socket)?
Can i use twisted 2.0 with wxPython 22.214.171.124?
Where can i found an example of twisted with wxpython?
Thanks for your help
Zunbeltz Izaola Azkona (zunbeltz at wm dot lc dot ehu dot es)
Materia Kondentsatuaren Fisika Saila |
Zientzia eta Teknologia Fakultatea | Telf: 34 946015326
Euskal Herriko Unibertsitatea |
PK 644 | Fax: 34 946013500
48080 Bilbo (SPAIN) |
More information about the Twisted-Python