Thread Synchronization
Hi,
I'm coding a IRC client application. And I'm using a aynchronous socket ( it's raise the event DataArrival to receive the data ).
But I have problem when I want to write some automatically modules.
How can I do like this:
public void Question()
{
Send("What is your name?");
string name = WaitForAnswer(); // Wait for the answer
}
Thanks!
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

marcelvojta25 pointsPosted Apr 11, 2005, 8:34 AM EDT