GNU libmicrohttpd  0.9.29
daemon.h
Go to the documentation of this file.
1 /*
2  This file is part of libmicrospdy
3  Copyright Copyright (C) 2012 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 DAEMON_H
26 #define DAEMON_H
27 
28 #include "platform.h"
29 
30 
35 
36 
60 struct SPDY_Daemon *
61 SPDYF_start_daemon_va (uint16_t port,
62  const char *certfile,
63  const char *keyfile,
70  void * cls,
71  void * fcls,
72  va_list valist);
73 
74 
82 void
83 SPDYF_run (struct SPDY_Daemon *daemon);
84 
85 
96 int
97 SPDYF_get_timeout (struct SPDY_Daemon *daemon,
98  unsigned long long *timeout);
99 
100 
114 int
115 SPDYF_get_fdset (struct SPDY_Daemon *daemon,
116  fd_set *read_fd_set,
117  fd_set *write_fd_set,
118  fd_set *except_fd_set,
119  bool all);
120 
121 
127 void
128 SPDYF_stop_daemon (struct SPDY_Daemon *daemon);
129 
130 #endif
uint16_t port
Definition: structures.h:996
void * cls
Definition: structures.h:935
int(* SPDYF_NewDataCallback)(void *cls, struct SPDYF_Stream *stream, const void *buf, size_t size, bool more)
Definition: structures.h:335
void * fcls
Definition: structures.h:945
struct SPDY_Daemon * SPDYF_start_daemon_va(uint16_t port, const char *certfile, const char *keyfile, SPDY_NewSessionCallback nscb, SPDY_SessionClosedCallback sccb, SPDY_NewRequestCallback nrcb, SPDY_NewDataCallback npdcb, SPDYF_NewStreamCallback fnscb, SPDYF_NewDataCallback fndcb, void *cls, void *fcls, va_list valist)
Definition: daemon.c:170
int SPDYF_get_timeout(struct SPDY_Daemon *daemon, unsigned long long *timeout)
Definition: daemon.c:392
void(* SPDY_NewRequestCallback)(void *cls, struct SPDY_Request *request, uint8_t priority, const char *method, const char *path, const char *version, const char *host, const char *scheme, struct SPDY_NameValue *headers, bool more)
Definition: microspdy.h:670
platform-specific includes for libmicrohttpd
char * keyfile
Definition: structures.h:897
void(* SPDY_NewSessionCallback)(void *cls, struct SPDY_Session *session)
Definition: microspdy.h:606
char * certfile
Definition: structures.h:891
enum SPDY_IO_SUBSYSTEM spdyf_io_initialized
Definition: daemon.h:34
int(* SPDY_NewDataCallback)(void *cls, struct SPDY_Request *request, const void *buf, size_t size, bool more)
Definition: microspdy.h:698
void(* SPDY_SessionClosedCallback)(void *cls, struct SPDY_Session *session, int by_client)
Definition: microspdy.h:623
int(* SPDYF_NewStreamCallback)(void *cls, struct SPDYF_Stream *stream)
Definition: structures.h:352
void SPDYF_stop_daemon(struct SPDY_Daemon *daemon)
Definition: daemon.c:373
void SPDYF_run(struct SPDY_Daemon *daemon)
Definition: daemon.c:474
int SPDYF_get_fdset(struct SPDY_Daemon *daemon, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, bool all)
Definition: daemon.c:432
SPDY_IO_SUBSYSTEM
Definition: microspdy.h:318