Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retriving data from a irc server

Status
Not open for further replies.

leprogrammer

Programmer
Mar 21, 2008
25
DK
Hello.

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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top