ircu2.10.12 pk910 fork
[ircu2.10.12-pk.git] / include / IPcheck.h
1 /** @file IPcheck.h
2  * @brief Interface to count users connected from particular IP addresses.
3  * @version $Id: IPcheck.h 1329 2005-03-19 23:22:09Z entrope $
4  */
5 #ifndef INCLUDED_ipcheck_h
6 #define INCLUDED_ipcheck_h
7
8 #ifndef INCLUDED_sys_types_h
9 #include <sys/types.h>          /* time_t, size_t */
10 #define INCLUDED_sys_types_h
11 #endif
12
13 struct Client;
14 struct irc_in_addr;
15
16 /*
17  * Prototypes
18  */
19 extern void IPcheck_init(void);
20 extern int IPcheck_local_connect(const struct irc_in_addr *ip, time_t *next_target_out);
21 extern void IPcheck_connect_fail(const struct Client *cptr);
22 extern void IPcheck_connect_succeeded(struct Client *cptr);
23 extern int IPcheck_remote_connect(struct Client *cptr, int is_burst);
24 extern void IPcheck_disconnect(struct Client *cptr);
25 extern unsigned short IPcheck_nr(struct Client* cptr);
26
27 #endif /* INCLUDED_ipcheck_h */