From 99346d6e244684194ab60df18f78d1c4ef593e83 Mon Sep 17 00:00:00 2001 From: 8nlight <8nlight@disroot.org> Date: Wed, 23 Aug 2023 19:24:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20ir?= =?UTF-8?q?c.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc.h | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 irc.h diff --git a/irc.h b/irc.h deleted file mode 100644 index 8f2ffca..0000000 --- a/irc.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - LICENSE: MIT - Simple libary for working with ipv4 irc servers - Dont support: - ssl - ddc - ipv6 - motd parsing -*/ - -#include -#include -#include -#include -#include -#include -#include -#include -#define IRCC_MSG_MAX 512 -#define IRCC_PING_TIMEOUT 600 - -enum { - IRCC_NICK = 1, - IRCC_PRIVMSG, - IRCC_JOIN, - IRCC_PART, - IRCC_PING, - IRCC_TOPIC, - IRCC_MODE, - - IRCC_CONNECTED, - IRCC_DISCONNECTED, - IRCC_ERROR, - IRCC_SUCCESS -}; - -typedef struct { - int socket; - size_t size; - char *raw; - char *msg; - char *channel; - char *nick; -} IRCC_client; - -unsigned int IRCC_connect(IRCC_client *irc, const char *ip, const unsigned int port); -unsigned int IRCC_register(IRCC_client *irc, const char *nickname); -unsigned int IRCC_recv(IRCC_client *irc); -void IRCC_send(IRCC_client *irc, char *msg, char *channel); -unsigned int IRCC_init(IRCC_client *irc, size_t size); -void IRCC_close(IRCC_client *irc);