/[svn]/ircd-hybrid/branches/8.2.x/include/listener.h
ViewVC logotype

Contents of /ircd-hybrid/branches/8.2.x/include/listener.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10007 - (show annotations)
Thu Jul 22 15:28:05 2021 UTC (2 months ago) by michael
File MIME type: text/x-csrc
File size: 2101 byte(s)
- listener.h: remove now unused header include

1 /*
2 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 *
4 * Copyright (c) 1997-2021 ircd-hybrid development team
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 * USA
20 */
21
22 /*! \file listener.h
23 * \brief A header for the listener code.
24 * \version $Id$
25 */
26
27 #ifndef INCLUDED_listener_h
28 #define INCLUDED_listener_h
29
30 #include "fdlist.h"
31
32 enum
33 {
34 LISTENER_TLS = 1 << 0,
35 LISTENER_HIDDEN = 1 << 1,
36 LISTENER_SERVER = 1 << 2,
37 LISTENER_CLIENT = 1 << 3,
38 LISTENER_DEFER = 1 << 4
39 };
40
41 struct Listener
42 {
43 dlink_node node; /**< Doubly linked list node */
44 bool active; /**< Current state of listener */
45 fde_t *fd; /**< File descriptor */
46 int port; /**< Listener IP port */
47 int ref_count; /**< Number of connection references */
48 struct irc_ssaddr addr; /**< Holds an IPv6 or IPv4 address */
49 char *name; /**< Holds an IPv6 or IPv4 address in string representation*/
50 unsigned int flags; /**< Listener flags (tls, hidden, server, client, defer) */
51 };
52
53 extern const dlink_list *listener_get_list(void);
54 extern void listener_add(int, const char *, unsigned int);
55 extern void listener_release(struct Listener *);
56 extern void listener_close_marked(void);
57 extern const char *listener_get_name(const struct Listener *);
58 extern bool listener_has_flag(const struct Listener *, unsigned int);
59 extern void listener_count_memory(unsigned int *, size_t *);
60 #endif /* INCLUDED_listener_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28