Загрузить файлы в «C»
This commit is contained in:
parent
ad09f6fba5
commit
a31b8a5bab
3 changed files with 99 additions and 39 deletions
18
C/irc.h
18
C/irc.h
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue