X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=include%2FIPcheck.h;fp=include%2FIPcheck.h;h=91693ac09a18b6c52cc9d2b6977cbfcfc6e80e34;hp=0000000000000000000000000000000000000000;hb=0400a5a6479398d82526785c18c0df8bc8b92dce;hpb=d17e10da972ce5776c60b4c317267c6abe0e1ead diff --git a/include/IPcheck.h b/include/IPcheck.h new file mode 100644 index 0000000..91693ac --- /dev/null +++ b/include/IPcheck.h @@ -0,0 +1,27 @@ +/** @file IPcheck.h + * @brief Interface to count users connected from particular IP addresses. + * @version $Id$ + */ +#ifndef INCLUDED_ipcheck_h +#define INCLUDED_ipcheck_h + +#ifndef INCLUDED_sys_types_h +#include /* time_t, size_t */ +#define INCLUDED_sys_types_h +#endif + +struct Client; +struct irc_in_addr; + +/* + * Prototypes + */ +extern void IPcheck_init(void); +extern int IPcheck_local_connect(const struct irc_in_addr *ip, time_t *next_target_out); +extern void IPcheck_connect_fail(const struct Client *cptr, int disconnect); +extern void IPcheck_connect_succeeded(struct Client *cptr); +extern int IPcheck_remote_connect(struct Client *cptr, int is_burst); +extern void IPcheck_disconnect(struct Client *cptr); +extern unsigned short IPcheck_nr(struct Client* cptr); + +#endif /* INCLUDED_ipcheck_h */