Skip to content

Retriving data from a irc server

Casper Hansen

Asked Sep 21, 2008, 3:29 AM EDT1 answer
Share
LinkedInX
I have been creating a simple irc client that connects to a server and sends some simple commands to it

I have also figured out how to retrive data from the server by using streams

The problem is I have to run a never-ending while to keep retriving all the data from the server

I do it like this:
while ((inputLine = reader.ReadLine()) == null)
{
listBox1.Items.Add(reader.ReadLine());
}

The problem is that my form doesent respond (I cant use buttons, and such) since the while is never-ending

Is there any way of adding a event that triggers when there is new data from the server?

Here is my project:
dumpen.dk/include/files/IrcBot.rar

And a bonus question: When connecting to Quakenet and joining a channel it says: 451 Register first

Why is that?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    i have replied to your post at codeguru.com; check it out.
    0