aboutsummaryrefslogtreecommitdiff
path: root/src/examples/spdy_response_with_callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/spdy_response_with_callback.c')
-rw-r--r--src/examples/spdy_response_with_callback.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/examples/spdy_response_with_callback.c b/src/examples/spdy_response_with_callback.c
index 1a029a64..e3233802 100644
--- a/src/examples/spdy_response_with_callback.c
+++ b/src/examples/spdy_response_with_callback.c
@@ -22,6 +22,9 @@
22 * @author Andrey Uzunov 22 * @author Andrey Uzunov
23 */ 23 */
24 24
25//for asprintf
26#define _GNU_SOURCE
27
25#include <unistd.h> 28#include <unistd.h>
26#include <stdlib.h> 29#include <stdlib.h>
27#include <stdint.h> 30#include <stdint.h>
@@ -61,6 +64,8 @@ response_done_callback(void *cls,
61 bool streamopened) 64 bool streamopened)
62{ 65{
63 (void)streamopened; 66 (void)streamopened;
67 (void)status;
68
64 printf("answer for %s was sent\n", (char *)cls); 69 printf("answer for %s was sent\n", (char *)cls);
65 70
66 SPDY_destroy_request(request); 71 SPDY_destroy_request(request);
@@ -78,7 +83,8 @@ standard_request_handler(void *cls,
78 const char *version, 83 const char *version,
79 const char *host, 84 const char *host,
80 const char *scheme, 85 const char *scheme,
81 struct SPDY_NameValue * headers) 86 struct SPDY_NameValue * headers,
87 bool more)
82{ 88{
83 (void)cls; 89 (void)cls;
84 (void)request; 90 (void)request;
@@ -86,6 +92,7 @@ standard_request_handler(void *cls,
86 (void)host; 92 (void)host;
87 (void)scheme; 93 (void)scheme;
88 (void)headers; 94 (void)headers;
95 (void)more;
89 96
90 char *html; 97 char *html;
91 struct SPDY_Response *response=NULL; 98 struct SPDY_Response *response=NULL;