25 |
|
#ifndef INCLUDED_s_bsd_h |
26 |
|
#define INCLUDED_s_bsd_h |
27 |
|
|
28 |
< |
#include "setup.h" |
28 |
> |
#include "config.h" |
29 |
|
#include "fdlist.h" |
30 |
– |
#include "hook.h" |
30 |
|
|
31 |
|
/* Type of IO */ |
32 |
|
#define COMM_SELECT_READ 1 |
36 |
|
#define SELECT_DELAY 500 |
37 |
|
|
38 |
|
struct Client; |
39 |
< |
struct AccessItem; |
41 |
< |
struct DNSReply; |
39 |
> |
struct MaskItem; |
40 |
|
struct Listener; |
41 |
|
|
42 |
|
extern struct Callback *setup_socket_cb; |
43 |
|
|
44 |
< |
extern void add_connection(struct Listener *, int); |
44 |
> |
extern void add_connection(struct Listener *, struct irc_ssaddr *, int); |
45 |
|
extern void close_connection(struct Client *); |
48 |
– |
extern int connect_server(struct AccessItem *, struct Client *, |
49 |
– |
struct DNSReply *); |
46 |
|
extern void report_error(int, const char *, const char *, int); |
47 |
|
|
48 |
|
extern int get_sockerr(int); |
59 |
|
extern int comm_accept(struct Listener *, struct irc_ssaddr *pn); |
60 |
|
|
61 |
|
/* These must be defined in the network IO loop code of your choice */ |
62 |
+ |
extern void init_netio(void); |
63 |
|
extern void comm_setselect(fde_t *, unsigned int, PF *, void *, time_t); |
64 |
|
extern void init_comm(void); |
65 |
|
extern int read_message (time_t, unsigned char); |