Thread Synchronization

Apr 6 2005 4:19 PM
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!

Answers (1)