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

Fixed bugs in parser
This commit is contained in:
8nlight 2023-08-07 18:06:44 +03:00
parent a25dbc52fd
commit 614470bc94
2 changed files with 20 additions and 13 deletions

19
C/irc.h
View file

@ -9,15 +9,18 @@
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#define IRCC_NICK 8
#define IRCC_PRIVMSG 7
#define IRCC_JOIN 6
#define IRCC_PART 5
#define IRCC_PING 4
enum {
IRCC_CONNECTED = 1,
IRCC_NICK,
IRCC_PRIVMSG,
IRCC_JOIN,
IRCC_PART,
IRCC_PING,
#define IRCC_DISCONNECTED 2
#define IRCC_ERROR 1
#define IRCC_SUCCESS 0
IRCC_DISCONNECTED,
IRCC_ERROR,
IRCC_SUCCESS
};
typedef struct {
int socket;