aboutsummaryrefslogtreecommitdiff
path: root/src/examples/mhd2spdy_spdy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/mhd2spdy_spdy.h')
-rw-r--r--src/examples/mhd2spdy_spdy.h71
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
29struct SPDY_Connection * spdy_connect(const struct URI *uri, uint16_t port, bool is_tls);
30 29
31void spdy_ctl_poll(struct pollfd *pollfd, struct SPDY_Connection *connection); 30struct SPDY_Connection *
31spdy_connect(const struct URI *uri,
32 uint16_t port,
33 bool is_tls);
32 34
33bool 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
38int spdy_exec_io(struct SPDY_Connection *connection); 36void
37spdy_ctl_poll(struct pollfd *pollfd,
38 struct SPDY_Connection *connection);
39
40
41bool
42spdy_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
48int
49spdy_exec_io(struct SPDY_Connection *connection);
50
51
52void
53spdy_diec(const char *func,
54 int error_code);
39 55
40void spdy_diec(const char *func, int error_code);
41 56
42int 57int
43spdy_request(const char **nv, struct Proxy *proxy); 58spdy_request(const char **nv,
59 struct Proxy *proxy);
60
61
62void
63spdy_ssl_init_ssl_ctx(SSL_CTX *ssl_ctx,
64 uint16_t *spdy_proto_version);
44 65
45void spdy_ssl_init_ssl_ctx(SSL_CTX *ssl_ctx, uint16_t *spdy_proto_version);
46 66
47void 67void
48spdy_free_connection(struct SPDY_Connection * connection); 68spdy_free_connection(struct SPDY_Connection * connection);
49 69
70
50void 71void
51spdy_get_pollfdset(struct pollfd fds[], struct SPDY_Connection *connections[], unsigned int max_size, nfds_t *real_size); 72spdy_get_pollfdset(struct pollfd fds[],
73 struct SPDY_Connection *connections[],
74 unsigned int max_size,
75 nfds_t *real_size);
52 76
53 77
54int 78int
55spdy_get_selectfdset(fd_set * read_fd_set, 79spdy_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
60void 87void
61spdy_run(struct pollfd fds[], struct SPDY_Connection *connections[], int size); 88spdy_run(struct pollfd fds[],
89 struct SPDY_Connection *connections[],
90 int size);
91
62 92
63void 93void
64spdy_run_select(fd_set * read_fd_set, 94spdy_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