I’m looking to write an IRC client in C, the trouble is I’m a bit of an IRC noob and I don’t know exactly how IRC servers accept connections.
My English isn’t too good, would someone be able to show me some pseudocode for an IRC connection?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a TCP, line-based protocol. Just send something like this:
Other than that, just respond to a
PINGwith a correspondingPONG. Example:I sent:
I got:
The protocol is documented in RFC1459. The biggest change since the RFC was released is that nicknames can now be longer, typically up to 30 characters.