PDA

View Full Version : Thread communications



waynew
5th June 2011, 03:19
Thread problem here. I have a thread for getting streaming information from the internet. After connecting to the host, I send it a logon and it starts sending data back.

The problem is, I need to be able to send commands back to the host to change the type of data sent. I don't see how to be able to do this without disconnecting from the socket and starting a new thread and re-connecting then logging on again and sending the new command. Is there a way to do this without disconnecting?

wysota
5th June 2011, 07:12
This really depends on what your application does and how it works, it's not something threads-specific.