469,914 Members | 2,480 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,914 developers. It's quick & easy.

asyncore and GUI (wxPython)

Hi,

I have the followin situation.

1) I've a machine controled by a computer programn that can
comunicate with TCP/IP ("server")to recive the request of other
program to knwo what the machine should do.
2) The other program ("client") has a GUI (with wxPython), recives
data from the machine and should process it (draw and write to file).

In the current situation the comunication is done in a thread. Every
time data is collected it is pased to the main thread of the GUI, with
a wxPostEvent. Every stream_socketk sended by the client has its
correspondig answer from the server. (I log the comunication an
every received socket is the anser of the sended one)

The problem: when i stop the thread (i don't no why) the answer to
the last socket don't correspond to the last sended (they mix).
The possible correction? I have been told not to do network connection
in other thread, instead i should use asyncore. I'll be sending sockets
every 0.1 seconds or faster. Will be the main progam "freeze" in the
asyncore loop, or it will refresh the windows and response to
mouse/keyboard properly? How fast can i be sending sockets without
distourbing the main program; or (it is very likeyly) i am totaly wrong
and i should take another way?

Thanks in advance

Zunbeltz
Jul 19 '05 #1
0 908

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Michael Welsh | last post: by
5 posts views Thread by george.trojan | last post: by
5 posts views Thread by David M. Wilson | last post: by
reply views Thread by Tony Meyer | last post: by
5 posts views Thread by JamesHoward | last post: by
7 posts views Thread by billie | last post: by
7 posts views Thread by Paul Kozik | last post: by
reply views Thread by Giampaolo Rodola' | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.