diff options
Diffstat (limited to 'src/examples/mhd2spdy_spdy.h')
-rw-r--r-- | src/examples/mhd2spdy_spdy.h | 71 |
1 files changed, 52 insertions, 19 deletions
diff --git a/src/examples/mhd2spdy_spdy.h b/src/examples/mhd2spdy_spdy.h index fa27e7f6..980ee1d1 100644 --- a/src/examples/mhd2spdy_spdy.h +++ b/src/examples/mhd2spdy_spdy.h | |||
@@ -26,43 +26,76 @@ | |||
26 | 26 | ||
27 | #include "mhd2spdy_structures.h" | 27 | #include "mhd2spdy_structures.h" |
28 | 28 | ||
29 | struct SPDY_Connection * spdy_connect(const struct URI *uri, uint16_t port, bool is_tls); | ||
30 | 29 | ||
31 | void spdy_ctl_poll(struct pollfd *pollfd, struct SPDY_Connection *connection); | 30 | struct SPDY_Connection * |
31 | spdy_connect(const struct URI *uri, | ||
32 | uint16_t port, | ||
33 | bool is_tls); | ||
32 | 34 | ||
33 | bool spdy_ctl_select(fd_set * read_fd_set, | ||
34 | fd_set * write_fd_set, | ||
35 | fd_set * except_fd_set, | ||
36 | struct SPDY_Connection *connection); | ||
37 | 35 | ||
38 | int spdy_exec_io(struct SPDY_Connection *connection); | 36 | void |
37 | spdy_ctl_poll(struct pollfd *pollfd, | ||
38 | struct SPDY_Connection *connection); | ||
39 | |||
40 | |||
41 | bool | ||
42 | spdy_ctl_select(fd_set * read_fd_set, | ||
43 | fd_set * write_fd_set, | ||
44 | fd_set * except_fd_set, | ||
45 | struct SPDY_Connection *connection); | ||
46 | |||
47 | |||
48 | int | ||
49 | spdy_exec_io(struct SPDY_Connection *connection); | ||
50 | |||
51 | |||
52 | void | ||
53 | spdy_diec(const char *func, | ||
54 | int error_code); | ||
39 | 55 | ||
40 | void spdy_diec(const char *func, int error_code); | ||
41 | 56 | ||
42 | int | 57 | int |
43 | spdy_request(const char **nv, struct Proxy *proxy); | 58 | spdy_request(const char **nv, |
59 | struct Proxy *proxy); | ||
60 | |||
61 | |||
62 | void | ||
63 | spdy_ssl_init_ssl_ctx(SSL_CTX *ssl_ctx, | ||
64 | uint16_t *spdy_proto_version); | ||
44 | 65 | ||
45 | void spdy_ssl_init_ssl_ctx(SSL_CTX *ssl_ctx, uint16_t *spdy_proto_version); | ||
46 | 66 | ||
47 | void | 67 | void |
48 | spdy_free_connection(struct SPDY_Connection * connection); | 68 | spdy_free_connection(struct SPDY_Connection * connection); |
49 | 69 | ||
70 | |||
50 | void | 71 | void |
51 | spdy_get_pollfdset(struct pollfd fds[], struct SPDY_Connection *connections[], unsigned int max_size, nfds_t *real_size); | 72 | spdy_get_pollfdset(struct pollfd fds[], |
73 | struct SPDY_Connection *connections[], | ||
74 | unsigned int max_size, | ||
75 | nfds_t *real_size); | ||
52 | 76 | ||
53 | 77 | ||
54 | int | 78 | int |
55 | spdy_get_selectfdset(fd_set * read_fd_set, | 79 | spdy_get_selectfdset(fd_set * read_fd_set, |
56 | fd_set * write_fd_set, | 80 | fd_set * write_fd_set, |
57 | fd_set * except_fd_set, | 81 | fd_set * except_fd_set, |
58 | struct SPDY_Connection *connections[], unsigned int max_size, nfds_t *real_size); | 82 | struct SPDY_Connection *connections[], |
59 | 83 | unsigned int max_size, | |
84 | nfds_t *real_size); | ||
85 | |||
86 | |||
60 | void | 87 | void |
61 | spdy_run(struct pollfd fds[], struct SPDY_Connection *connections[], int size); | 88 | spdy_run(struct pollfd fds[], |
89 | struct SPDY_Connection *connections[], | ||
90 | int size); | ||
91 | |||
62 | 92 | ||
63 | void | 93 | void |
64 | spdy_run_select(fd_set * read_fd_set, | 94 | spdy_run_select(fd_set * read_fd_set, |
65 | fd_set * write_fd_set, | 95 | fd_set * write_fd_set, |
66 | fd_set * except_fd_set, struct SPDY_Connection *connections[], int size); | 96 | fd_set * except_fd_set, |
67 | 97 | struct SPDY_Connection *connections[], | |
98 | int size); | ||
99 | |||
100 | |||
68 | #endif | 101 | #endif |