GNU libmicrohttpd  0.9.29
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
daemon.h
Go to the documentation of this file.
1 /*
2  This file is part of libmicrospdy
3  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