* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
* Copyright (C) 1996-2002 Hybrid Development Team
* Copyright (C) 2002-2004 ircd-ratbox development team
- * Copyright (C) 2005 William Pitcock and Jilles Tjoelker
+ * Copyright (C) 2005 Ariadne Conill and Jilles Tjoelker
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
struct scache_entry *nameinfo;
};
-struct ZipStats
-{
- unsigned long long in;
- unsigned long long in_wire;
- unsigned long long out;
- unsigned long long out_wire;
- double in_ratio;
- double out_ratio;
-};
-
struct Client
{
rb_dlink_node node;
struct ws_ctl *ws_ctl; /* ctl for wsockd */
SSL_OPEN_CB *ssl_callback; /* ssl connection is now open */
uint32_t localflags;
- struct ZipStats *zipstats; /* zipstats */
uint16_t cork_count; /* used for corking/uncorking connections */
struct ev_entry *event; /* used for associated events */
#define LFLAGS_CORK 0x00000004
#define LFLAGS_SCTP 0x00000008
#define LFLAGS_SECURE 0x00000010 /* for marking SSL clients as secure before registration */
+/* LFLAGS_FAKE: client may not have the usually expected machinery plugged in; don't assert on it. For tests only. */
#define LFLAGS_FAKE 0x00000020
/* umodes, settable flags */
#define IsNoForward(x) ((x)->umodes & UMODE_NOFORWARD)
#define SetGotId(x) ((x)->flags |= FLAGS_GOTID)
+#define ClearGotId(x) ((x)->flags &= ~FLAGS_GOTID)
#define IsGotId(x) (((x)->flags & FLAGS_GOTID) != 0)
#define IsExemptKline(x) ((x)->flags & FLAGS_EXEMPTKLINE)