blob: 9a328a71d8a3444110fd9f83f30b1ef5379d52c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef _ZoO_IO_NETWORK_TYPES_H_
#define _ZoO_IO_NETWORK_TYPES_H_
#define POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include "../pervasive.h"
enum ZoO_msg_type
{
ZoO_PRIVMSG,
ZoO_JOIN
};
struct ZoO_network
{
size_t buffer_index;
size_t buffer_remaining;
size_t in_length;
struct addrinfo * addrinfo;
ZoO_char buffer [513];
ZoO_char in [513];
ZoO_char out [513];
int connection;
const char * restrict channel;
const char * restrict user;
const char * restrict name;
const char * restrict nick;
};
#endif
|