/[svn]/ircd-hybrid-7.2/include/client.h
ViewVC logotype

Diff of /ircd-hybrid-7.2/include/client.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1012 by michael, Fri Sep 18 10:14:09 2009 UTC revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC
# Line 52  struct LocalUser; Line 52  struct LocalUser;
52    
53  struct Server  struct Server
54  {  {
   char by[NICKLEN];       /* who activated this connection     */  
55    struct ConfItem *sconf; /* ConfItem connect{} pointer for this server */    struct ConfItem *sconf; /* ConfItem connect{} pointer for this server */
56    dlink_list server_list; /* Servers on this server            */    dlink_list server_list; /* Servers on this server            */
57    dlink_list client_list; /* Clients on this server            */    dlink_list client_list; /* Clients on this server            */
58      char by[NICKLEN];       /* who activated this connection     */
59  };  };
60    
61  struct SlinkRpl  struct SlinkRpl
# Line 79  struct ZipStats Line 79  struct ZipStats
79    
80  struct ListTask  struct ListTask
81  {  {
82    int hash_index;       /* the bucket we are currently in */    unsigned int hash_index; /* the bucket we are currently in */
83    dlink_list show_mask; /* show these channels..          */    dlink_list show_mask; /* show these channels..          */
84    dlink_list hide_mask; /* ..and hide these ones          */    dlink_list hide_mask; /* ..and hide these ones          */
85    unsigned int users_min, users_max;    unsigned int users_min, users_max;
# Line 92  struct Client Line 92  struct Client
92    dlink_node node;    dlink_node node;
93    dlink_node lnode;             /* Used for Server->servers/users */    dlink_node lnode;             /* Used for Server->servers/users */
94    
95    struct Client *hnext;         /* For client hash table lookups by name */    struct LocalUser *localClient;
96    struct Client *idhnext;       /* For SID hash table lookups by sid */    struct Client    *hnext;              /* For client hash table lookups by name */
97      struct Client    *idhnext;    /* For SID hash table lookups by sid */
98    struct Server*    serv;       /* ...defined, if this is a server */    struct Server    *serv;       /* ...defined, if this is a server */
99    struct Client*    servptr;    /* Points to server this Client is on */    struct Client    *servptr;    /* Points to server this Client is on */
100    struct Client*    from;       /* == self, if Local Client, *NEVER* NULL! */    struct Client    *from;       /* == self, if Local Client, *NEVER* NULL! */
101      struct Whowas    *whowas;     /* Pointers to whowas structs */
102      char             *away;
103    
   struct Whowas*    whowas;     /* Pointers to whowas structs */  
104    time_t            lasttime;   /* ...should be only LOCAL clients? --msa */    time_t            lasttime;   /* ...should be only LOCAL clients? --msa */
105    time_t            firsttime;  /* time client was created */    time_t            firsttime;  /* time client was created */
106    time_t            since;      /* last time we parsed something */    time_t            since;      /* last time we parsed something */
107    time_t            tsinfo;     /* TS on the nick, SVINFO on server */    time_t            tsinfo;     /* TS on the nick, SVINFO on server */
   
   unsigned int      umodes;     /* opers, normal users subset */  
108    uint64_t          flags;      /* client flags */    uint64_t          flags;      /* client flags */
109    
110    unsigned short    hopcount;   /* number of servers to this 0 = local */    unsigned int      umodes;     /* opers, normal users subset */
111    unsigned short    status;     /* Client type */    unsigned int      hopcount;   /* number of servers to this 0 = local */
112    unsigned char     handler;    /* Handler index */    unsigned int      status;     /* Client type */
113      unsigned int      handler;    /* Handler index */
114    unsigned int      serial;     /* used to enforce 1 send per nick */    unsigned int      serial;     /* used to enforce 1 send per nick */
115    char *away;  
116      dlink_list        channel;   /* chain of channel pointer blocks */
117    
118    /*    /*
119     * client->name is the unique name for a client nick or host     * client->name is the unique name for a client nick or host
# Line 151  struct Client Line 152  struct Client
152     */     */
153    char              sockhost[HOSTIPLEN + 1]; /* This is the host name from the    char              sockhost[HOSTIPLEN + 1]; /* This is the host name from the
154                                                  socket ip address as string */                                                  socket ip address as string */
   dlink_list        channel;   /* chain of channel pointer blocks */  
   
   struct LocalUser *localClient;  
155  };  };
156    
157  struct LocalUser  struct LocalUser
# Line 175  struct LocalUser Line 173  struct LocalUser
173    
174    
175    /* Anti flooding part, all because of lamers... */    /* Anti flooding part, all because of lamers... */
176    time_t            last_away; /* Away since... */    time_t       last_knock;    /* time of last knock */
177    time_t            last_join_time;   /* when this client last    time_t       last_away; /* Away since... */
178                                           joined a channel */    time_t       last_join_time;   /* when this client last
179    time_t            last_leave_time;  /* when this client last                                      joined a channel */
180      time_t       last_leave_time;  /* when this client last
181                                         * left a channel */                                         * left a channel */
182    int               join_leave_count; /* count of JOIN/LEAVE in less than    int          join_leave_count; /* count of JOIN/LEAVE in less than
183                                           MIN_JOIN_LEAVE_TIME seconds */                                           MIN_JOIN_LEAVE_TIME seconds */
184    int               oper_warn_count_down; /* warn opers of this possible    int          oper_warn_count_down; /* warn opers of this possible
185                                            spambot every time this gets to 0 */                                            spambot every time this gets to 0 */
186    time_t            reject_delay;    time_t       reject_delay;
187    time_t            last_caller_id_time;    time_t       last_caller_id_time;
188    time_t            first_received_message_time;    time_t       first_received_message_time;
189    time_t            last_nick_change;    time_t       last_nick_change;
190    
191    int               received_number_of_privmsgs;    int          received_number_of_privmsgs;
192    unsigned int      number_of_nick_changes;    unsigned int number_of_nick_changes;
193    
194    struct ListTask   *list_task;    struct ListTask  *list_task;
195    /* Send and receive dbufs .. */    /* Send and receive dbufs .. */
196    struct dbuf_queue buf_sendq;    struct dbuf_queue buf_sendq;
197    struct dbuf_queue buf_recvq;    struct dbuf_queue buf_recvq;
# Line 242  struct LocalUser Line 241  struct LocalUser
241     */     */
242    int allow_read;       /* how many we're allowed to read in this second */    int allow_read;       /* how many we're allowed to read in this second */
243    int sent_parsed;      /* how many messages we've parsed in this second */    int sent_parsed;      /* how many messages we've parsed in this second */
   time_t last_knock;    /* time of last knock */  
244    
245    char*          response;  /* expected response from client */    char*          response;  /* expected response from client */
246    char*          auth_oper; /* Operator to become if they supply the response.*/    char*          auth_oper; /* Operator to become if they supply the response.*/

Legend:
Removed from v.1012  
changed lines
  Added in v.1013

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26