I'm currently using pcap in C++ to read a tcp packet. The problem is I'm confused as to how I go about reading if the packet is using an IRC protocol and then how do I read the commands that are sent from and to the IRC client and server? For instance, using wireshark I'm able to see if the protocol is IRC and I'm able to see all of the commands and parameters given. I'm trying to do the samething in pcap. Is there a IRC specific header struct used for reading the portion of a TCP packet?
Asked
Active
Viewed 2,576 times
1 Answers
1
IRC is based on rfc 2812 and you can get all the details here
-
Actually, IRC is more properly based on [RFC1459](http://tools.ietf.org/html/rfc1459.html) - the 28xx series of RFCs are not widely accepted or implemented and most people who were involved in IRC server development (including myself) find them to be obnoxious and poorly written. – Nik Bougalis Mar 24 '13 at 19:48
-
i gave the answer based on google search ... Thanks for clarifying – Pradheep Mar 24 '13 at 20:02