Adblock breaks this site

C++ Irc Bot

Discussion in 'Programming General' started by AconRH, Dec 2, 2013.

  1. AconRH

    AconRH Newcomer

    Joined:
    Feb 18, 2013
    Posts:
    24
    Referrals:
    0
    Sythe Gold:
    0
    C++ Irc Bot

    Hey, Anyone know any free tutorial for free C++ tutorials on Irc Bot programming?


    Thanks!
     
  2. leoPrez

    leoPrez Active Member
    Banned

    Joined:
    Feb 19, 2013
    Posts:
    103
    Referrals:
    0
    Sythe Gold:
    0
    C++ Irc Bot

    interested also
     
  3. Kimiko

    Kimiko Newcomer

    Joined:
    Nov 30, 2013
    Posts:
    15
    Referrals:
    0
    Sythe Gold:
    0
    C++ Irc Bot

    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.
     
  4. AwT

    AwT Member

    Joined:
    May 4, 2007
    Posts:
    45
    Referrals:
    0
    Sythe Gold:
    0
    C++ Irc Bot

    I highly suggest that you conduct a Google search before posting.
    There are a lot of resources out there.
     
< Starting off with Programming... | Java help >


 
 
Adblock breaks this site