Загрузить файлы в «C»

This commit is contained in:
8nlight 2023-08-16 10:53:53 +03:00
parent ad09f6fba5
commit a31b8a5bab
3 changed files with 99 additions and 39 deletions

18
C/irc.h
View file

@ -1,3 +1,13 @@
/*
LICENSE: MIT
Simple libary for working with ipv4 irc servers
Dont support:
ssl
ddc
ipv6
motd parsing
*/
#ifndef IRC_LINUX
#define IRC_LINUX
@ -9,14 +19,18 @@
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#define IRCC_MSG_MAX 512
enum {
IRCC_CONNECTED = 1,
IRCC_NICK,
IRCC_NICK = 1,
IRCC_PRIVMSG,
IRCC_JOIN,
IRCC_PART,
IRCC_PING,
IRCC_TOPIC,
IRCC_MODE,
IRCC_CONNECTED,
IRCC_DISCONNECTED,
IRCC_ERROR,
IRCC_SUCCESS