Reverting last commit to try again

This commit is contained in:
Valery Yatsko 2008-04-02 13:11:59 +04:00
parent 873487eb8f
commit f438bd836a
4 changed files with 563 additions and 535 deletions

View file

@ -609,7 +609,7 @@ extern void close_connection(struct Client *);
extern void init_uid(void); extern void init_uid(void);
extern char *generate_uid(void); extern char *generate_uid(void);
void allocate_away(struct Client *); void allocate_away(struct Client *);
void free_away(struct Client *); void free_away(struct Client *);
#endif /* INCLUDED_client_h */ #endif /* INCLUDED_client_h */

View file

@ -29,25 +29,26 @@
#include "ircd_defs.h" #include "ircd_defs.h"
struct Client; struct Client;
struct Listener struct Listener
{ {
rb_dlink_node node; struct Listener *next; /* list node pointer */
const char *name; /* listener name */ const char *name; /* listener name */
rb_fde_t *F; /* file descriptor */ int fd; /* file descriptor */
int ref_count; /* number of connection references */ int ref_count; /* number of connection references */
int active; /* current state of listener */ int active; /* current state of listener */
int ssl; /* ssl listener */ int index; /* index into poll array */
struct rb_sockaddr_storage addr; struct irc_sockaddr_storage addr;
char vhost[HOSTLEN + 1]; /* virtual name of listener */ struct DNSQuery *dns_query;
}; char vhost[HOSTLEN + 1]; /* virtual name of listener */
};
void add_listener(int port, const char *vaddr_ip, int family, int ssl);
void close_listener(struct Listener *listener); extern void add_listener(int port, const char *vaddr_ip, int family);
void close_listeners(void); extern void close_listener(struct Listener *listener);
const char *get_listener_name(struct Listener *listener); extern void close_listeners(void);
void show_ports(struct Client *client); extern const char *get_listener_name(const struct Listener *listener);
void free_listener(struct Listener *); extern void show_ports(struct Client *client);
extern void free_listener(struct Listener *);
#endif /* INCLUDED_listener_h */ #endif /* INCLUDED_listener_h */

File diff suppressed because it is too large Load diff

View file

@ -758,9 +758,9 @@ conf_set_listen_port(void *data)
} }
if(listener_address == NULL) if(listener_address == NULL)
{ {
add_listener(args->v.number, listener_address, AF_INET, 0); add_listener(args->v.number, listener_address, AF_INET);
#ifdef IPV6 #ifdef IPV6
add_listener(args->v.number, listener_address, AF_INET6, 0); add_listener(args->v.number, listener_address, AF_INET6);
#endif #endif
} }
else else
@ -773,7 +773,7 @@ conf_set_listen_port(void *data)
#endif #endif
family = AF_INET; family = AF_INET;
add_listener(args->v.number, listener_address, family, 0); add_listener(args->v.number, listener_address, family);
} }