• Log in or sign up for an account here: https://www.sythe.org/login

C++ Irc Bot

AconRH

Newcomer
Joined
Feb 18, 2013
Sythe Gold
0
Messages
24
Location
Chuck Norris
Hey, Anyone know any free tutorial for free C++ tutorials on Irc Bot programming?


Thanks!
 
An IRC bot follows mainly UDP protocol. It wouldn't require so much of a tutorial as understanding basic sockets. Depending on the platform you're on, function arguments will slightly differ. The main functionality you're looking into are.
getaddrinfo: Which will allocate memory for a struct that holds information about the host server and creating the socket.
socket: Which will create the socket given the struct returned from getaddrinfo.
connect: Which will connect the socket to the server.
Once connected, all that's left to do is check the buffer supplied to recv, for specific commands.
You can send a buffer using the send function.
 
I highly suggest that you conduct a Google search before posting.
There are a lot of resources out there.
 
Back
Top