GNU libmicrohttpd  0.9.29
io_raw.h
Go to the documentation of this file.
1 /*
2  This file is part of libmicrospdy
3  Copyright Copyright (C) 2013 Andrey Uzunov
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
25 #ifndef IO_RAW_H
26 #define IO_RAW_H
27 
28 #include "platform.h"
29 
30 
35 void
37 
38 
44 void
46 
47 
54 int
56 
57 
64 void
66 
67 
75 int
76 SPDYF_raw_new_session(struct SPDY_Session *session);
77 
78 
85 void
86 SPDYF_raw_close_session(struct SPDY_Session *session);
87 
88 
100 int
101 SPDYF_raw_recv(struct SPDY_Session *session,
102  void * buffer,
103  size_t size);
104 
105 
118 int
119 SPDYF_raw_send(struct SPDY_Session *session,
120  const void * buffer,
121  size_t size);
122 
123 
132 int
133 SPDYF_raw_is_pending(struct SPDY_Session *session);
134 
135 
143 int
144 SPDYF_raw_before_write(struct SPDY_Session *session);
145 
146 
155 int
156 SPDYF_raw_after_write(struct SPDY_Session *session, int was_written);
157 
158 #endif
struct SPDY_Daemon * daemon
Definition: structures.h:633
void SPDYF_raw_global_deinit()
Definition: io_raw.c:40
platform-specific includes for libmicrohttpd
int SPDYF_raw_after_write(struct SPDY_Session *session, int was_written)
Definition: io_raw.c:179
int SPDYF_raw_is_pending(struct SPDY_Session *session)
Definition: io_raw.c:151
int SPDYF_raw_recv(struct SPDY_Session *session, void *buffer, size_t size)
Definition: io_raw.c:93
int SPDYF_raw_init(struct SPDY_Daemon *daemon)
Definition: io_raw.c:46
void SPDYF_raw_deinit(struct SPDY_Daemon *daemon)
Definition: io_raw.c:55
int SPDYF_raw_before_write(struct SPDY_Session *session)
Definition: io_raw.c:160
void SPDYF_raw_close_session(struct SPDY_Session *session)
Definition: io_raw.c:86
void SPDYF_raw_global_init()
Definition: io_raw.c:34
int SPDYF_raw_new_session(struct SPDY_Session *session)
Definition: io_raw.c:62
int SPDYF_raw_send(struct SPDY_Session *session, const void *buffer, size_t size)
Definition: io_raw.c:122