Загрузить файлы в «C»
This commit is contained in:
parent
bfd92a19b7
commit
b0c07cdf38
3 changed files with 16 additions and 25 deletions
7
C/irc.h
7
C/irc.h
|
@ -17,6 +17,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <netdb.h>
|
||||
#include <sys/time.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
|
@ -40,7 +41,7 @@ enum {
|
|||
|
||||
typedef struct {
|
||||
int socket;
|
||||
size_t size;
|
||||
|
||||
char *raw;
|
||||
char *msg;
|
||||
char *channel;
|
||||
|
@ -50,6 +51,6 @@ typedef struct {
|
|||
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_send(IRCC_client *irc, const char *msg, const char *channel);
|
||||
unsigned int IRCC_init(IRCC_client *irc);
|
||||
void IRCC_close(IRCC_client *irc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue