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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#ifndef _JH_META_NET_META_NET_H_
#define _JH_META_NET_META_NET_H_
#include "../parameters/parameters_types.h"
#include "../irc/irc_types.h"
#include "meta_net_types.h"
void JH_meta_net_initialize
(
struct JH_meta_net socket [const restrict static 1]
);
int JH_meta_net_connect
(
struct JH_meta_net socket [const restrict static 1],
const struct JH_parameters params [const restrict static 1]
);
void JH_meta_net_finalize
(
struct JH_meta_net socket [const restrict static 1]
);
int JH_meta_net_try_request
(
struct JH_meta_net socket [const restrict static 1],
const char string [const restrict static 1],
const size_t string_size
);
int JH_meta_net_handle_user_message
(
struct JH_meta_net socket [const restrict static 1],
const char string [const restrict static 1],
const size_t string_size
);
int JH_meta_net_handle_user_action
(
struct JH_meta_net socket [const restrict static 1],
const char string [const restrict static 1],
const size_t string_size
);
int JH_meta_net_read
(
struct JH_meta_net socket [const restrict static 1]
);
int JH_meta_net_write
(
struct JH_meta_net socket [const restrict static 1]
);
void JH_meta_net_handle_reply
(
struct JH_meta_net socket [const restrict static 1],
struct JH_irc irc [const restrict static 1],
const struct JH_parameters params [const restrict static 1]
);
int JH_meta_net_pre_select
(
struct JH_meta_net socket [const restrict static 1],
fd_set in [const restrict static 1],
fd_set out [const restrict static 1],
int max_fd [const restrict static 1]
);
int JH_meta_net_post_select
(
struct JH_meta_net socket [const restrict static 1],
fd_set in [const restrict static 1],
fd_set out [const restrict static 1]
);
#endif
|