2 * IRC - Internet Relay Chat, include/struct.h
3 * Copyright (C) 1990 Jarkko Oikarinen and
4 * University of Oulu, Computing Center
5 * Copyright (C) 1996 -1997 Carlo Wood
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef INCLUDED_struct_h
24 #define INCLUDED_struct_h
25 #ifndef INCLUDED_sys_types_h
26 #include <sys/types.h> /* time_t */
27 #define INCLUDED_sys_types_h
29 #ifndef INCLUDED_ircd_defs_h
30 #include "ircd_defs.h" /* sizes */
41 struct Client* up; /* Server one closer to me */
42 struct DLink* down; /* List with downlink servers */
43 struct DLink* updown; /* own Dlink in up->serv->down struct */
44 struct Client** client_list; /* List with client pointers on this server */
45 struct User* user; /* who activated this connection */
46 time_t timestamp; /* Remotely determined connect try time */
47 time_t ghost; /* Local time at which a new server
49 int lag; /* Approximation of the amount of lag to this server */
50 unsigned int clients; /* Number of clients on the network */
51 unsigned short prot; /* Major protocol */
52 unsigned short nn_last; /* Last numeric nick for p9 servers only */
53 unsigned int nn_mask; /* [Remote] FD_SETSIZE - 1 */
54 char nn_capacity[4]; /* numeric representation of server capacity */
56 int asll_rtt; /* AsLL round-trip time */
57 int asll_to; /* AsLL upstream lag */
58 int asll_from; /* AsLL downstream lag */
60 char *last_error_msg; /* Allocated memory with last message receive with an ERROR */
66 struct Client* server; /* client structure of server */
67 struct Membership* channel; /* chain of channel pointer blocks */
68 struct SLink* invited; /* chain of invite pointer blocks */
69 struct SLink* silence; /* chain of silence pointer blocks */
70 char* away; /* pointer to away message */
72 unsigned int refcnt; /* Number of times this block is referenced */
73 unsigned int joined; /* number of channels joined */
74 unsigned int invites; /* Number of channels we've been invited to */
75 char username[USERLEN + 1];
76 char host[HOSTLEN + 1];
77 char realhost[HOSTLEN + 1];
78 char account[ACCOUNTLEN + 1];
82 #endif /* INCLUDED_struct_h */