| 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" |
| 31 |
|
|
| 38 |
|
|
| 39 |
|
struct Client; |
| 40 |
|
struct AccessItem; |
| 41 |
– |
struct DNSReply; |
| 41 |
|
struct Listener; |
| 42 |
|
|
| 43 |
|
extern struct Callback *setup_socket_cb; |
| 44 |
|
|
| 45 |
< |
extern void add_connection(struct Listener *, int); |
| 45 |
> |
extern void add_connection(struct Listener *, struct irc_ssaddr *, int); |
| 46 |
|
extern void close_connection(struct Client *); |
| 47 |
|
extern int connect_server(struct AccessItem *, struct Client *, |
| 48 |
|
struct DNSReply *); |
| 62 |
|
extern int comm_accept(struct Listener *, struct irc_ssaddr *pn); |
| 63 |
|
|
| 64 |
|
/* These must be defined in the network IO loop code of your choice */ |
| 65 |
+ |
extern void init_netio(void); |
| 66 |
|
extern void comm_setselect(fde_t *, unsigned int, PF *, void *, time_t); |
| 67 |
|
extern void init_comm(void); |
| 68 |
|
extern int read_message (time_t, unsigned char); |