Debian Codegraph @

src/tls/server.h

raw
1 /*
2 * Copyright (C) 2019 Red Hat, Inc.
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #pragma once
7
8 #include <stdbool.h>
9 #include <stdint.h>
10
11 #include <gnutls/gnutls.h>
12
13 void
14 server_init (const char *wsinstance_sockdir,
15 const char *cert_session_dir,
16 int idle_timeout,
17 uint16_t port,
18 unsigned int max_connections);
19
20 void
21 server_run (void);
22
23 void
24 server_cleanup (void);
25
26 int
27 server_get_listener (void);
28
29 /* these are for unit tests only */
30 bool
31 server_poll_event (int timeout);
32
33 unsigned
34 server_num_connections (void);