#ifndef irc_h_INCLUDED #define irc_h_INCLUDED #include #include #include #include #include #include #define IRC_RECVBUF_SIZE 1024 extern int g_ircsock; // connects to the irc server, as defined in config.h // returns -1 on failure. int irc_connect(); int irc_handshake(); // reads from irc socket into its buffer. // if a full message / many full messages are available, handles them all. int irc_recv(); // sends a string to the irc socket. returns -1 on failure. int irc_sendall(char msg[], size_t len); #endif // irc_h_INCLUDED