41 |
|
|
42 |
|
struct Listener |
43 |
|
{ |
44 |
< |
dlink_node node; /* list node pointer */ |
45 |
< |
fde_t fd; /* file descriptor */ |
46 |
< |
int port; /* listener IP port */ |
47 |
< |
int ref_count; /* number of connection references */ |
48 |
< |
int active; /* current state of listener */ |
49 |
< |
struct irc_ssaddr addr; /* virtual address or INADDR_ANY */ |
50 |
< |
char name[HOSTLEN + 1]; /* virtual name of listener */ |
51 |
< |
unsigned int flags; |
44 |
> |
dlink_node node; /**< Doubly linked list node */ |
45 |
> |
fde_t fd; /**< Describe socket to event system */ |
46 |
> |
int port; /**< Listener IP port */ |
47 |
> |
int ref_count; /**< Number of connection references */ |
48 |
> |
int active; /**< Current state of listener */ |
49 |
> |
struct irc_ssaddr addr; /**< Holds an IPv6 or IPv4 address */ |
50 |
> |
char name[HOSTIPLEN + 1]; /**< Holds an IPv6 or IPv4 address in string representation*/ |
51 |
> |
unsigned int flags; /**< Listener flags (ssl, hidden, server) */ |
52 |
|
}; |
53 |
|
|
54 |
|
extern void add_listener(int, const char *, unsigned int); |
56 |
|
extern const char *get_listener_name(const struct Listener *const); |
57 |
|
extern void show_ports(struct Client *); |
58 |
|
extern void free_listener(struct Listener *); |
59 |
< |
#endif /* INCLUDED_listener_h */ |
59 |
> |
#endif |