Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <pthread.h>
- using namespace std;
- class IRC_Client {
- public:
- IRC_Client(string host, int port, string user, string nick, string passwd);
- int irc_connect();
- void irc_disconnect();
- void sendCommand(string cmd);
- void sendMsg(string msg, string p = "");
- void channel(string ch);
- int startCommandListener();
- static void *commandListener(void* arg);
- virtual void cmd(string cmd);
- virtual void pcmd(string cmd, string fullMsg);
- private:
- void irc_identify();
- static const unsigned int MAX_LINE = 1024;
- string host;
- int port;
- string user;
- string nick;
- string passwd;
- string ch;
- static int sockfd;
- bool run = true;
- pthread_t thread;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement