Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Retriving data from a irc server
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Casper Hansen
16y
2k
1
Reply
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?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Popup shown in backgroundworker thread
string to doble problem