s_dcc_client Struct Reference

Collaboration diagram for s_dcc_client:

Collaboration graph
[legend]
List of all members.

Detailed Description

Stores DCC state of user.

Author:
VooDooMan
Version:
1
Date:
2004

Definition at line 221 of file dcc.cpp.

Public Member Functions

 s_dcc_client ()
 ~s_dcc_client ()

Public Attributes

bool access_grant_apply
 Can this user grant accesst to .apply command to other user?
bool access_grant_backup
 Can this user grant/deny access to .backup command to other user?
bool access_grant_can_send_all_users
 Can this user grant right to send message / file to all users?
bool access_grant_can_send_unknown_users
 Can this user grant right to send message / file to unknown?
vector< string > access_grant_channel
 List of channels that user can add/exclude users to/from.
bool access_grant_die
 Can this user grant access to .die command to other user?
bool access_grant_filesystem
 Can this user grant access to .filesystem command to other user?
vector< string > access_grant_groups
 List of groups that user can add/exclude users to.
bool access_grant_partyline
 Can user grant other user access to partyline?
bool access_grant_plusproc
 Can this user (or bot) grant creatoin new procedure to other user?
bool access_grant_plususer
 Can this user (or bot) grant creatoin new user to other user?
bool access_grant_private
 Has user right to grant to other user access to private query definitions?
vector< string > access_grant_proc
 List of procedures that user can grant access to.
vector< string > access_grant_proc_groups
 List of groups of procedures that user can grant access to.
bool access_grant_rehash
 Can this user grant/deny access to .rehash command to other user?
bool access_grant_replication
 Can this user grant access to modify replication parameters?
bool access_grant_restart
 Can this user grant access to .restart command to other user?
bool access_grant_upgrade
 Can this user grant accesst to .upgrade command to other user?
bool access_to_apply
 Has user access to .apply command?
bool access_to_backup
 Can this user use .backup command?
bool access_to_can_send_all_users
 Can this user send message / file to all users?
bool access_to_can_send_unknown_users
 Can this user send message / file to unknown users?
vector< string > access_to_chan_defs
 List of channels that user has access to their definitions.
vector< string > access_to_channel
 List of channels that user has access to.
bool access_to_die
 Can this user use .die command?
bool access_to_filesystem
 Can this user use .filesystem command?
vector< string > access_to_groups
 List of groups that user has access to.
bool access_to_plusproc
 Can this user (or bot) create new procedure?
bool access_to_plususer
 Can this user (or bot) create new user?
bool access_to_private
 Has user access to private query definitions?
vector< string > access_to_proc_groups
 List of groups of procedures that user has access to.
vector< string > access_to_procs
bool access_to_rehash
 Can this user use .rehash command?
bool access_to_replication
 Can this user modify replication parameters?
bool access_to_restart
 Can this user use .restart command?
bool access_to_upgrade
 Has user access to .upgrade command?
vector< string > access_to_users
 List of users that user has access to.
vector< string > access_usage_proc
 List of procedures that user can add/exclude events to.
vector< string > access_usage_proc_groups
 List of procedure groups that user can add/exclude events to.
string as_in_logic
 Contains name of user (as in logic.txt file).
bool b_repl_chandef
 Are we editing replication for channel definitions?
bool b_repl_private
 Are we editing replication for private query events?
bool b_repl_proc
 Are we editing replication for procedure?
bool b_repl_user
 Are we editing replication for user?
bool b_repl_user_template
 Are we editing replication for user template?
bool chat
 Is this connection a DCC-CHAT-type connection?
vector< s_channelchs
 User's channels.
s_dcc_client::s_dcc_client_send dcc_send
 Stores data about temporary file being uploaded via DCC SEND Stores data about temporary file being uploaded via DCC SEND.
int dynbans
 Context state of .dynbans command.
string dynbans_channel
 Name of channel for .dynbans command.
int edit_chan
 Number of state of editing channel definitions.
int edit_channel_num
 Number of channel which is edited for edited user.
int edit_proc
 Number of procedure-editing state.
int edit_proc_addafter_line
 Number of line of current-edited procedure to add after (-1 for none).
int edit_proc_addbefore_line
 Number of line of current-edited procedure to add before (-1 for none).
int edit_proc_replace_line
 Number of line of current-edited procedure to replace (-1 for none).
int edit_rproc
 Number of remote procedure callability editing state.
int edit_user
 Number of state in editting of user.
int filesystem
 Number of state in managing of the filesystem.
tm filesystem_expiration
 Current edited expiration of object in the filesystem.
s_dcc_client::s_fs fs
 Stores data about file from the filesystem Current-edited file from the filesystem.
string fullname
 Full name of user at initiation of connection.
int got_passwd
 Has user enterred password yet?
bool got_user_name
 If we know user name as in "logic.txt", will be set to false on requesting nick name if "dcc_always_want_nick" from "conf.txt" file is non-zero.
string host
 Host of user at initiation of connection.
string hostname
 Contains host of user.
string ident
 Ident of user at initiation of connection.
string in_buff
 Contains buffer for reading from DCC connection.
string lang
 Contains code of language which to speak with user.
int language
 Context state of .lang command.
time_t last_filesys_lookup
 Timestamp of last filesystem lookup for notifies.
time_t last_input
 Timestamp of last socket read (non-zero bytes).
int msg
 Number of state in send message.
string msg_content
 Stores content of the message.
time_t msg_expiration
 Expiration of the message.
vector< s_flood_historymsg_flood_hist
 History for partline flood detection.
int new_user
 Number of state in adding of new user.
string nick
 Nick of user at initiation of connection.
int num_not_configured_channels
 Number of non-configured channels for new user.
string partyline_channel
 Name of partyline channel that user is on, or an empty string for none.
s_flood partyline_msg_flood
 This user: message flood on partylien channels.
bool plus_proc
 Are we processing a ".+proc" command?
s_private private_
 Current-edited private query messages.
int private_edit
 Context state of .private command.
list< string > proc_commands
 List of commands for current-edited procedure.
string proc_decl
 Declaration of current-edite procedure.
string proc_error
 Syntax error string in current-edited procedure.
vector< string > proc_groups
 List of groups which is current-edited procedure member of.
string proc_name
 Name of current-edited procedure.
string proc_to_delete
 Name and full declaration of procedure to delete (after replace of procedure by .+proc to existing procedure).
string remote
 Remote host/IP.
s_replication repl_add
 Current-edited object's new replication parameters.
s_channel_def repl_chandef
 Current-edited replication properties if we are editing channel definitions.
s_private repl_private
 Current-edited replication properties if we are editing private query events.
s_procedure repl_proc
 Current-edited replication properties if we are editing a procedure.
s_user repl_user
 Current-edited replication properties if we are editing an user.
s_user repl_user_template
 Current-edited replication properties if we are editing an user template.
int replication
 Context state of .replication command.
bool replication_partner
 Is this a replication partner?
size_t resume_pos
vector< s_rprocrproc
 List of remote bots that can call this current-editing procedure remotely (BOTNET).
bool send
 Is this connection a DCC-SEND-type connection?
s_dcc_send_file send_file
 File that has beed sending.
bool send_from_filesystem
 Is this connection a DCC-SEND-type connection? (sending file to remote user).
s_socket server_socket
 Socket handle of DCC server connection.
s_socket socket
 Socket handle of DCC connection.
SSL * ssl
 If there is a SSL connection, descriptor is here.
bool ssl_connection
 Is this a SSL connection?
string supposed_to_be
 Contains name of user (as in logic.txt file) - set, before "as_in_logic" is cleaned.
bool telnet
 Is this connection a telnet server?
bool telnet_botnet_called
 Have we called botnet function to process telnet input buffer?
char telnet_buffer [5 *1024]
 Input buffer for telnet connection.
size_t telnet_buffer_pos
 Position in input buffer for telnet connection.
int terminator
 Context state of .terminator command.
string terminator_user
 Name of current-edited user in .terminator command.
s_user u
 User's descriptor.
bool user_access_grant_apply
 Can this user grant accesst to .apply command to other user?
bool user_access_grant_backup
 Can edited/new user grant/deny access to .backup command to other user?
bool user_access_grant_can_send_all_users
 Can current-edited user grant right to send message / file to all users?
bool user_access_grant_can_send_unknown_users
 Can current-edited user grant right to send message / file to unknown?
vector< string > user_access_grant_channel
 List of channels that new user can add/exclude users to/from.
bool user_access_grant_die
 Can edited/new user grant/deny access to .die command to other user?
bool user_access_grant_filesystem
 Can edited/new user grant/deny access to .filesystem command to other user?
vector< string > user_access_grant_groups
 List of groups that new user can add/exclude users to.
bool user_access_grant_partyline
 Has new user access to grant access to partyline to other user?
bool user_access_grant_plusproc
 Can current-edite user (or bot) grant creatoin new procedure to other user?
bool user_access_grant_plususer
 Can current-edite user (or bot) grant creatoin new user to other user?
bool user_access_grant_private
 Has current-edited user right to grant to other user access to private query definitions?
vector< string > user_access_grant_proc_groups
 List of groups of procedures that new user has access to.
bool user_access_grant_rehash
 Can edited/new user grant/deny access to .rehash command to other user?
bool user_access_grant_replication
 Can current-edited user grant access to modify replication parameters?
bool user_access_grant_restart
 Can edited/new user grant/deny access to .restart command to other user?
bool user_access_grant_upgrade
 Can this user grant accesst to .upgrade command to other user?
bool user_access_to_apply
 Has user access to .apply command?
bool user_access_to_backup
 Can edited/new user use .backup command?
bool user_access_to_can_send_all_users
 Can current-edited user send message / file to all users?
bool user_access_to_can_send_unknown_users
 Can current-edited user send message / file to unknown?
vector< string > user_access_to_channel
 List of channels that new user has access to.
bool user_access_to_die
 Can edited/new user use .die command?
bool user_access_to_filesystem
 Can edited/new user use .filesystem command?
vector< string > user_access_to_groups
 List of groups that new user has access to.
bool user_access_to_partyline
 Has new user access to partyline?
bool user_access_to_plusproc
 Can current-edited user (or bot) create new procedure?
bool user_access_to_plususer
 Can current-edited user (or bot) create new user?
bool user_access_to_private
 Has current-edited user access to private query definitions?
vector< string > user_access_to_proc_groups
 List of groups of procedures that new user has access to.
bool user_access_to_rehash
 Can edited/new user use .rehash command?
bool user_access_to_replication
 Can current-edited user modify replication parameters?
bool user_access_to_restart
 Can edited/new user use .restart command?
bool user_access_to_upgrade
 Has user access to .upgrade command?
vector< string > user_access_usage_proc_groups
 List of groups of procedures that new user can assign events to.
s_channel user_channel
 Current-edited channel configuration for new user.
s_dynamic_rule user_channel_allow_dynamic
 Current-edited user's current-edited dynamic rule.
s_channel_def user_channel_def
 Current-edited channel definition.
vector< s_channeluser_channels
 List of channels for new user.
s_dcc_host user_dcc_host
 Current-edited DCC host of new user.
vector< s_dcc_hostuser_dcc_hosts
 List of DCC hosts of new user.
vector< string > user_fullnames
 List of full names of new user.
vector< string > user_hosts
 List of hosts of new user.
vector< string > user_member_of
 List of groups which is new user member of.
map< string, string > user_meta
 Meta data for current-edited user.
string user_name
 Name of new user.
s_flood user_partyline_msg_flood
 Current-edited user: message flood on partylien channels.

Classes

struct  s_dcc_client_send
 Stores data about temporary file being uploaded via DCC SEND. More...
struct  s_fs
 Stores data about file from the filesystem. More...


Constructor & Destructor Documentation

s_dcc_client::s_dcc_client  )  [inline]
 

< List of groups that new user can add/exclude users to

Definition at line 478 of file dcc.cpp.

References access_grant_apply, access_grant_backup, access_grant_can_send_all_users, access_grant_can_send_unknown_users, access_grant_channel, access_grant_die, access_grant_filesystem, access_grant_groups, access_grant_partyline, access_grant_plusproc, access_grant_plususer, access_grant_private, access_grant_proc, access_grant_proc_groups, access_grant_rehash, access_grant_replication, access_grant_restart, access_grant_upgrade, access_to_apply, access_to_backup, access_to_can_send_all_users, access_to_can_send_unknown_users, access_to_chan_defs, access_to_channel, access_to_die, access_to_filesystem, access_to_groups, access_to_plusproc, access_to_plususer, access_to_private, access_to_proc_groups, access_to_procs, access_to_rehash, access_to_replication, access_to_restart, access_to_upgrade, access_to_users, access_usage_proc, access_usage_proc_groups, as_in_logic, b_repl_chandef, b_repl_private, b_repl_proc, b_repl_user, b_repl_user_template, chat, s_socket::clear(), s_private::clear(), dcc_send, edit_chan, edit_channel_num, edit_proc, edit_proc_addafter_line, edit_proc_addbefore_line, edit_proc_replace_line, edit_user, s_dcc_client::s_dcc_client_send::f, filesystem, fullname, got_passwd, got_user_name, host, hostname, ident, in_buff, s_dcc_client::s_dcc_client_send::is_file_server_proto, lang, language, last_filesys_lookup, last_input, s_dcc_client::s_dcc_client_send::last_packet, msg, msg_content, msg_expiration, msg_flood_hist, new_user, nick, num_not_configured_channels, s_dcc_client::s_dcc_client_send::original_name, partyline_channel, plus_proc, private_, private_edit, proc_commands, proc_decl, proc_error, proc_groups, proc_name, proc_to_delete, s_dcc_client::s_dcc_client_send::received, remote, replication, replication_partner, s_dcc_client::s_dcc_client_send::response_sent, resume_pos, send, send_from_filesystem, server_socket, s_dcc_client::s_dcc_client_send::size, socket, ssl_connection, telnet, telnet_botnet_called, telnet_buffer, telnet_buffer_pos, terminator, s_dcc_client::s_dcc_client_send::tmp_file_name, user_access_grant_apply, user_access_grant_backup, user_access_grant_can_send_all_users, user_access_grant_can_send_unknown_users, user_access_grant_channel, user_access_grant_die, user_access_grant_filesystem, user_access_grant_groups, user_access_grant_partyline, user_access_grant_plusproc, user_access_grant_plususer, user_access_grant_private, user_access_grant_proc_groups, user_access_grant_rehash, user_access_grant_replication, user_access_grant_restart, user_access_grant_upgrade, user_access_to_apply, user_access_to_backup, user_access_to_can_send_all_users, user_access_to_can_send_unknown_users, user_access_to_channel, user_access_to_die, user_access_to_filesystem, user_access_to_groups, user_access_to_partyline, user_access_to_plusproc, user_access_to_plususer, user_access_to_private, user_access_to_proc_groups, user_access_to_rehash, user_access_to_replication, user_access_to_restart, user_access_to_upgrade, user_access_usage_proc_groups, user_channels, user_dcc_hosts, user_fullnames, user_hosts, user_member_of, user_meta, and user_name.

00479     {
00480         remote="";
00481         dcc_send.f=NULL;
00482         memset(dcc_send.tmp_file_name,0,sizeof(dcc_send.tmp_file_name));
00483         dcc_send.size=0;
00484         dcc_send.received=0;
00485         dcc_send.last_packet=0;
00486         dcc_send.response_sent=false;
00487         dcc_send.original_name="";
00488 
00489         user_access_to_can_send_all_users=false;
00490         user_access_grant_can_send_all_users=false;
00491 
00492         user_access_to_can_send_unknown_users=false;
00493         user_access_grant_can_send_unknown_users=false;
00494 
00495         access_to_can_send_all_users=false;
00496         access_grant_can_send_all_users=false;
00497 
00498         access_to_can_send_unknown_users=false;
00499         access_grant_can_send_unknown_users=false;
00500 
00501         access_to_can_send_all_users=false;
00502         access_grant_can_send_all_users=false;
00503 
00504         replication=0;
00505         b_repl_user=false;
00506         b_repl_user_template=false;
00507         b_repl_chandef=false;
00508         b_repl_proc=false;
00509         b_repl_private=false;
00510 
00511         private_edit=0;
00512         private_.clear();
00513 
00514         send_from_filesystem=false;
00515 
00516         filesystem=0;
00517 
00518         resume_pos=0;
00519 
00520         msg=0;
00521         msg_content="";
00522         msg_expiration=0;
00523 
00524         language=0;
00525 
00526         dcc_send.is_file_server_proto=false;
00527 
00528         server_socket.clear();
00529         chat=false;
00530         send=false;
00531         telnet=false;
00532         replication_partner=false;
00533         ssl_connection=false;
00534         socket.clear();
00535         hostname="";
00536         as_in_logic="";
00537         in_buff="";
00538         last_input=0;
00539         lang="";
00540         got_passwd=0;
00541         access_to_users.clear();
00542         access_to_groups.clear();
00543         access_grant_groups.clear();
00544         access_to_proc_groups.clear();
00545         access_grant_proc_groups.clear();
00546         access_usage_proc.clear();
00547         access_usage_proc_groups.clear();
00548         access_grant_proc.clear();
00549         access_to_channel.clear();
00550         access_grant_channel.clear();
00551         access_grant_partyline=false;
00552 
00553         access_to_procs.clear();
00554         access_to_proc_groups.clear();
00555 
00556         access_grant_proc.clear();
00557         access_grant_proc_groups.clear();
00558 
00559         access_usage_proc.clear();
00560         access_usage_proc_groups.clear();
00561 
00562         access_to_plususer=false;
00563         access_grant_plususer=false;
00564         access_to_plusproc=false;
00565         access_grant_plusproc=false;
00566         access_to_replication=false;
00567         access_grant_replication=false;
00568         access_to_restart=false;
00569         access_grant_restart=false;
00570         access_to_die=false;
00571         access_grant_die=false;
00572         access_to_filesystem=false;
00573         access_grant_filesystem=false;
00574         access_to_upgrade=access_grant_upgrade=false;
00575         access_to_apply=access_grant_apply=false;
00576         user_access_to_upgrade=user_access_grant_upgrade=false;
00577         user_access_to_apply=user_access_grant_apply=false;
00578         user_access_to_filesystem=false;
00579         user_access_grant_filesystem=false;
00580         access_to_private=false;
00581         access_grant_private=false;
00582         user_access_to_private=false;
00583         user_access_grant_private=false;
00584         msg_flood_hist.clear();
00585         new_user=0;
00586         user_name="";
00587         user_hosts.clear();
00588         user_dcc_hosts.clear();
00589         user_fullnames.clear();
00590         user_meta.clear();
00591         user_access_to_partyline=false;
00592         user_access_grant_partyline=false;
00593         user_access_to_groups.clear();
00594         user_access_grant_groups.clear();    //!< List of groups that new user can add/exclude users to
00595         user_access_to_proc_groups.clear();
00596         user_access_grant_proc_groups.clear();
00597         user_access_usage_proc_groups.clear();
00598         user_access_to_channel.clear();
00599         user_access_grant_channel.clear();
00600         user_channels.clear();
00601         num_not_configured_channels=0;
00602         user_member_of.clear();
00603         user_access_to_plususer=false;
00604         user_access_grant_plususer=false;
00605         user_access_to_plusproc=false;
00606         user_access_grant_plusproc=false;
00607         user_access_to_replication=false;
00608         user_access_grant_replication=false;
00609         edit_user=0;
00610         edit_channel_num=0;
00611         edit_proc=0;
00612         plus_proc=false;
00613         proc_name="";
00614         proc_to_delete="";
00615         proc_decl="";
00616         proc_commands.clear();
00617         edit_proc_addbefore_line=0;
00618         edit_proc_addafter_line=0;
00619         edit_proc_replace_line=0;
00620         proc_error="";
00621         proc_groups.clear();
00622         access_to_backup=false;
00623         access_grant_backup=false;
00624         access_to_rehash=false;
00625         access_grant_rehash=false;
00626         user_access_to_backup=false;
00627         user_access_grant_backup=false;
00628         user_access_to_rehash=false;
00629         user_access_grant_rehash=false;
00630         user_access_to_restart=false;
00631         user_access_grant_restart=false;
00632         user_access_to_die=false;
00633         user_access_grant_die=false;
00634         edit_chan=false;
00635         access_to_chan_defs.clear();
00636         memset(telnet_buffer,0,sizeof(telnet_buffer));
00637         telnet_buffer_pos=0;
00638         telnet_botnet_called=false;
00639         partyline_channel="";
00640 
00641         last_filesys_lookup=0;
00642 
00643         terminator=0;
00644 
00645         nick=ident=host=fullname="";
00646 
00647         got_user_name=false;
00648     }

Here is the call graph for this function:

s_dcc_client::~s_dcc_client  )  [inline]
 

Definition at line 650 of file dcc.cpp.

References dcc_send, and s_dcc_client::s_dcc_client_send::f.

00651     {
00652         if(dcc_send.f)
00653             fclose(dcc_send.f);
00654         dcc_send.f=NULL;
00655     }


Member Data Documentation

bool s_dcc_client::access_grant_apply
 

Can this user grant accesst to .apply command to other user?

Definition at line 308 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_backup
 

Can this user grant/deny access to .backup command to other user?

Definition at line 418 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_can_send_all_users
 

Can this user grant right to send message / file to all users?

Definition at line 247 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_can_send_unknown_users
 

Can this user grant right to send message / file to unknown?

Definition at line 302 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_grant_channel
 

List of channels that user can add/exclude users to/from.

Definition at line 282 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_die
 

Can this user grant access to .die command to other user?

Definition at line 296 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_filesystem
 

Can this user grant access to .filesystem command to other user?

Definition at line 299 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_grant_groups
 

List of groups that user can add/exclude users to.

Definition at line 270 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_partyline
 

Can user grant other user access to partyline?

Definition at line 283 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_plusproc
 

Can this user (or bot) grant creatoin new procedure to other user?

Definition at line 288 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_plususer
 

Can this user (or bot) grant creatoin new user to other user?

Definition at line 285 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_private
 

Has user right to grant to other user access to private query definitions?

Definition at line 442 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_grant_proc
 

List of procedures that user can grant access to.

Definition at line 275 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_grant_proc_groups
 

List of groups of procedures that user can grant access to.

Definition at line 276 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_rehash
 

Can this user grant/deny access to .rehash command to other user?

Definition at line 420 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_replication
 

Can this user grant access to modify replication parameters?

Definition at line 291 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_restart
 

Can this user grant access to .restart command to other user?

Definition at line 294 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_grant_upgrade
 

Can this user grant accesst to .upgrade command to other user?

Definition at line 305 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_apply
 

Has user access to .apply command?

Definition at line 307 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_backup
 

Can this user use .backup command?

Definition at line 417 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_can_send_all_users
 

Can this user send message / file to all users?

Definition at line 246 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_can_send_unknown_users
 

Can this user send message / file to unknown users?

Definition at line 301 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_to_chan_defs
 

List of channels that user has access to their definitions.

Definition at line 449 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_to_channel
 

List of channels that user has access to.

Definition at line 281 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_die
 

Can this user use .die command?

Definition at line 295 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_filesystem
 

Can this user use .filesystem command?

Definition at line 298 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_to_groups
 

List of groups that user has access to.

Definition at line 269 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_plusproc
 

Can this user (or bot) create new procedure?

Definition at line 287 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_plususer
 

Can this user (or bot) create new user?

Definition at line 284 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_private
 

Has user access to private query definitions?

Definition at line 441 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_to_proc_groups
 

List of groups of procedures that user has access to.

Definition at line 273 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_to_procs
 

Definition at line 272 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_rehash
 

Can this user use .rehash command?

Definition at line 419 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_replication
 

Can this user modify replication parameters?

Definition at line 290 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_restart
 

Can this user use .restart command?

Definition at line 293 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::access_to_upgrade
 

Has user access to .upgrade command?

Definition at line 304 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_to_users
 

List of users that user has access to.

Definition at line 268 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_usage_proc
 

List of procedures that user can add/exclude events to.

Definition at line 278 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::access_usage_proc_groups
 

List of procedure groups that user can add/exclude events to.

Definition at line 279 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::as_in_logic
 

Contains name of user (as in logic.txt file).

Definition at line 254 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

bool s_dcc_client::b_repl_chandef
 

Are we editing replication for channel definitions?

Definition at line 366 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::b_repl_private
 

Are we editing replication for private query events?

Definition at line 370 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::b_repl_proc
 

Are we editing replication for procedure?

Definition at line 368 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::b_repl_user
 

Are we editing replication for user?

Definition at line 362 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::b_repl_user_template
 

Are we editing replication for user template?

Definition at line 364 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::chat
 

Is this connection a DCC-CHAT-type connection?

Definition at line 231 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

vector<s_channel> s_dcc_client::chs
 

User's channels.

Definition at line 244 of file dcc.cpp.

struct s_dcc_client::s_dcc_client_send s_dcc_client::dcc_send
 

Stores data about temporary file being uploaded via DCC SEND Stores data about temporary file being uploaded via DCC SEND.

Author:
VooDooMan
Version:
1
Date:
2004

Referenced by dcc_loop(), irc_quoted_callback(), s_dcc_client(), and ~s_dcc_client().

int s_dcc_client::dynbans
 

Context state of .dynbans command.

Definition at line 379 of file dcc.cpp.

string s_dcc_client::dynbans_channel
 

Name of channel for .dynbans command.

Definition at line 380 of file dcc.cpp.

int s_dcc_client::edit_chan
 

Number of state of editing channel definitions.

Definition at line 448 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::edit_channel_num
 

Number of channel which is edited for edited user.

Definition at line 349 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::edit_proc
 

Number of procedure-editing state.

Definition at line 402 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::edit_proc_addafter_line
 

Number of line of current-edited procedure to add after (-1 for none).

Definition at line 409 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::edit_proc_addbefore_line
 

Number of line of current-edited procedure to add before (-1 for none).

Definition at line 408 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::edit_proc_replace_line
 

Number of line of current-edited procedure to replace (-1 for none).

Definition at line 410 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::edit_rproc
 

Number of remote procedure callability editing state.

Definition at line 414 of file dcc.cpp.

int s_dcc_client::edit_user
 

Number of state in editting of user.

Definition at line 348 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

int s_dcc_client::filesystem
 

Number of state in managing of the filesystem.

Definition at line 351 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

tm s_dcc_client::filesystem_expiration
 

Current edited expiration of object in the filesystem.

Definition at line 352 of file dcc.cpp.

struct s_dcc_client::s_fs s_dcc_client::fs
 

Stores data about file from the filesystem Current-edited file from the filesystem.

Author:
VooDooMan
Version:
1
Date:
2004

string s_dcc_client::fullname
 

Full name of user at initiation of connection.

Definition at line 229 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

int s_dcc_client::got_passwd
 

Has user enterred password yet?

Definition at line 264 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

bool s_dcc_client::got_user_name
 

If we know user name as in "logic.txt", will be set to false on requesting nick name if "dcc_always_want_nick" from "conf.txt" file is non-zero.

Definition at line 238 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

string s_dcc_client::host
 

Host of user at initiation of connection.

Definition at line 228 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

string s_dcc_client::hostname
 

Contains host of user.

Definition at line 253 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::ident
 

Ident of user at initiation of connection.

Definition at line 227 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

string s_dcc_client::in_buff
 

Contains buffer for reading from DCC connection.

Definition at line 259 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::lang
 

Contains code of language which to speak with user.

Definition at line 262 of file dcc.cpp.

Referenced by dcc_check_limit(), dcc_loop(), and s_dcc_client().

int s_dcc_client::language
 

Context state of .lang command.

Definition at line 377 of file dcc.cpp.

Referenced by s_dcc_client().

time_t s_dcc_client::last_filesys_lookup
 

Timestamp of last filesystem lookup for notifies.

Definition at line 266 of file dcc.cpp.

Referenced by s_dcc_client().

time_t s_dcc_client::last_input
 

Timestamp of last socket read (non-zero bytes).

Definition at line 260 of file dcc.cpp.

Referenced by dcc_check_limit(), and s_dcc_client().

int s_dcc_client::msg
 

Number of state in send message.

Definition at line 354 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::msg_content
 

Stores content of the message.

Definition at line 355 of file dcc.cpp.

Referenced by s_dcc_client().

time_t s_dcc_client::msg_expiration
 

Expiration of the message.

Definition at line 356 of file dcc.cpp.

Referenced by s_dcc_client().

vector<s_flood_history> s_dcc_client::msg_flood_hist
 

History for partline flood detection.

Definition at line 311 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::new_user
 

Number of state in adding of new user.

Definition at line 315 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

string s_dcc_client::nick
 

Nick of user at initiation of connection.

Definition at line 226 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

int s_dcc_client::num_not_configured_channels
 

Number of non-configured channels for new user.

Definition at line 332 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::partyline_channel
 

Name of partyline channel that user is on, or an empty string for none.

Definition at line 456 of file dcc.cpp.

Referenced by s_dcc_client().

s_flood s_dcc_client::partyline_msg_flood
 

This user: message flood on partylien channels.

Definition at line 310 of file dcc.cpp.

bool s_dcc_client::plus_proc
 

Are we processing a ".+proc" command?

Definition at line 406 of file dcc.cpp.

Referenced by s_dcc_client().

s_private s_dcc_client::private_
 

Current-edited private query messages.

Definition at line 359 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::private_edit
 

Context state of .private command.

Definition at line 358 of file dcc.cpp.

Referenced by s_dcc_client().

list<string> s_dcc_client::proc_commands
 

List of commands for current-edited procedure.

Definition at line 407 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::proc_decl
 

Declaration of current-edite procedure.

Definition at line 405 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::proc_error
 

Syntax error string in current-edited procedure.

Definition at line 411 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::proc_groups
 

List of groups which is current-edited procedure member of.

Definition at line 412 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::proc_name
 

Name of current-edited procedure.

Definition at line 403 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::proc_to_delete
 

Name and full declaration of procedure to delete (after replace of procedure by .+proc to existing procedure).

Definition at line 404 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::remote
 

Remote host/IP.

Definition at line 224 of file dcc.cpp.

Referenced by dcc_loop(), and s_dcc_client().

s_replication s_dcc_client::repl_add
 

Current-edited object's new replication parameters.

Definition at line 372 of file dcc.cpp.

s_channel_def s_dcc_client::repl_chandef
 

Current-edited replication properties if we are editing channel definitions.

Definition at line 367 of file dcc.cpp.

s_private s_dcc_client::repl_private
 

Current-edited replication properties if we are editing private query events.

Definition at line 371 of file dcc.cpp.

s_procedure s_dcc_client::repl_proc
 

Current-edited replication properties if we are editing a procedure.

Definition at line 369 of file dcc.cpp.

s_user s_dcc_client::repl_user
 

Current-edited replication properties if we are editing an user.

Definition at line 363 of file dcc.cpp.

s_user s_dcc_client::repl_user_template
 

Current-edited replication properties if we are editing an user template.

Definition at line 365 of file dcc.cpp.

int s_dcc_client::replication
 

Context state of .replication command.

Definition at line 361 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::replication_partner
 

Is this a replication partner?

Definition at line 235 of file dcc.cpp.

Referenced by dcc_loop(), and s_dcc_client().

size_t s_dcc_client::resume_pos
 

Definition at line 249 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

vector<s_rproc> s_dcc_client::rproc
 

List of remote bots that can call this current-editing procedure remotely (BOTNET).

Definition at line 415 of file dcc.cpp.

bool s_dcc_client::send
 

Is this connection a DCC-SEND-type connection?

Definition at line 232 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

s_dcc_send_file s_dcc_client::send_file
 

File that has beed sending.

Definition at line 251 of file dcc.cpp.

Referenced by dcc_loop().

bool s_dcc_client::send_from_filesystem
 

Is this connection a DCC-SEND-type connection? (sending file to remote user).

Definition at line 233 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

s_socket s_dcc_client::server_socket
 

Socket handle of DCC server connection.

Definition at line 222 of file dcc.cpp.

Referenced by dcc_loop(), irc_quoted_callback(), and s_dcc_client().

s_socket s_dcc_client::socket
 

Socket handle of DCC connection.

Definition at line 236 of file dcc.cpp.

Referenced by dcc_check_limit(), dcc_loop(), irc_quoted_callback(), and s_dcc_client().

SSL* s_dcc_client::ssl
 

If there is a SSL connection, descriptor is here.

Definition at line 241 of file dcc.cpp.

bool s_dcc_client::ssl_connection
 

Is this a SSL connection?

Definition at line 240 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::supposed_to_be
 

Contains name of user (as in logic.txt file) - set, before "as_in_logic" is cleaned.

Definition at line 255 of file dcc.cpp.

bool s_dcc_client::telnet
 

Is this connection a telnet server?

Definition at line 234 of file dcc.cpp.

Referenced by dcc_check_limit(), dcc_loop(), irc_quoted_callback(), and s_dcc_client().

bool s_dcc_client::telnet_botnet_called
 

Have we called botnet function to process telnet input buffer?

Definition at line 454 of file dcc.cpp.

Referenced by s_dcc_client().

char s_dcc_client::telnet_buffer[5 *1024]
 

Input buffer for telnet connection.

Definition at line 452 of file dcc.cpp.

Referenced by s_dcc_client().

size_t s_dcc_client::telnet_buffer_pos
 

Position in input buffer for telnet connection.

Definition at line 453 of file dcc.cpp.

Referenced by s_dcc_client().

int s_dcc_client::terminator
 

Context state of .terminator command.

Definition at line 374 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::terminator_user
 

Name of current-edited user in .terminator command.

Definition at line 375 of file dcc.cpp.

s_user s_dcc_client::u
 

User's descriptor.

Definition at line 243 of file dcc.cpp.

bool s_dcc_client::user_access_grant_apply
 

Can this user grant accesst to .apply command to other user?

Definition at line 439 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_backup
 

Can edited/new user grant/deny access to .backup command to other user?

Definition at line 423 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_can_send_all_users
 

Can current-edited user grant right to send message / file to all users?

Definition at line 459 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_can_send_unknown_users
 

Can current-edited user grant right to send message / file to unknown?

Definition at line 344 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_access_grant_channel
 

List of channels that new user can add/exclude users to/from.

Definition at line 329 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_die
 

Can edited/new user grant/deny access to .die command to other user?

Definition at line 430 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_filesystem
 

Can edited/new user grant/deny access to .filesystem command to other user?

Definition at line 433 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_access_grant_groups
 

List of groups that new user can add/exclude users to.

Definition at line 324 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_partyline
 

Has new user access to grant access to partyline to other user?

Definition at line 322 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_plusproc
 

Can current-edite user (or bot) grant creatoin new procedure to other user?

Definition at line 338 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_plususer
 

Can current-edite user (or bot) grant creatoin new user to other user?

Definition at line 335 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_private
 

Has current-edited user right to grant to other user access to private query definitions?

Definition at line 444 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_access_grant_proc_groups
 

List of groups of procedures that new user has access to.

Definition at line 326 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_rehash
 

Can edited/new user grant/deny access to .rehash command to other user?

Definition at line 425 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_replication
 

Can current-edited user grant access to modify replication parameters?

Definition at line 341 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_restart
 

Can edited/new user grant/deny access to .restart command to other user?

Definition at line 428 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_grant_upgrade
 

Can this user grant accesst to .upgrade command to other user?

Definition at line 436 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_apply
 

Has user access to .apply command?

Definition at line 438 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_backup
 

Can edited/new user use .backup command?

Definition at line 422 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_can_send_all_users
 

Can current-edited user send message / file to all users?

Definition at line 458 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_can_send_unknown_users
 

Can current-edited user send message / file to unknown?

Definition at line 343 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_access_to_channel
 

List of channels that new user has access to.

Definition at line 328 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_die
 

Can edited/new user use .die command?

Definition at line 429 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_filesystem
 

Can edited/new user use .filesystem command?

Definition at line 432 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_access_to_groups
 

List of groups that new user has access to.

Definition at line 323 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_partyline
 

Has new user access to partyline?

Definition at line 321 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_plusproc
 

Can current-edited user (or bot) create new procedure?

Definition at line 337 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_plususer
 

Can current-edited user (or bot) create new user?

Definition at line 334 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_private
 

Has current-edited user access to private query definitions?

Definition at line 443 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_access_to_proc_groups
 

List of groups of procedures that new user has access to.

Definition at line 325 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_rehash
 

Can edited/new user use .rehash command?

Definition at line 424 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_replication
 

Can current-edited user modify replication parameters?

Definition at line 340 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_restart
 

Can edited/new user use .restart command?

Definition at line 427 of file dcc.cpp.

Referenced by s_dcc_client().

bool s_dcc_client::user_access_to_upgrade
 

Has user access to .upgrade command?

Definition at line 435 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_access_usage_proc_groups
 

List of groups of procedures that new user can assign events to.

Definition at line 327 of file dcc.cpp.

Referenced by s_dcc_client().

s_channel s_dcc_client::user_channel
 

Current-edited channel configuration for new user.

Definition at line 330 of file dcc.cpp.

s_dynamic_rule s_dcc_client::user_channel_allow_dynamic
 

Current-edited user's current-edited dynamic rule.

Definition at line 446 of file dcc.cpp.

s_channel_def s_dcc_client::user_channel_def
 

Current-edited channel definition.

Definition at line 450 of file dcc.cpp.

vector<s_channel> s_dcc_client::user_channels
 

List of channels for new user.

Definition at line 331 of file dcc.cpp.

Referenced by s_dcc_client().

s_dcc_host s_dcc_client::user_dcc_host
 

Current-edited DCC host of new user.

Definition at line 319 of file dcc.cpp.

vector<s_dcc_host> s_dcc_client::user_dcc_hosts
 

List of DCC hosts of new user.

Definition at line 318 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_fullnames
 

List of full names of new user.

Definition at line 320 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_hosts
 

List of hosts of new user.

Definition at line 317 of file dcc.cpp.

Referenced by s_dcc_client().

vector<string> s_dcc_client::user_member_of
 

List of groups which is new user member of.

Definition at line 333 of file dcc.cpp.

Referenced by s_dcc_client().

map<string,string> s_dcc_client::user_meta
 

Meta data for current-edited user.

Definition at line 346 of file dcc.cpp.

Referenced by s_dcc_client().

string s_dcc_client::user_name
 

Name of new user.

Definition at line 316 of file dcc.cpp.

Referenced by s_dcc_client().

s_flood s_dcc_client::user_partyline_msg_flood
 

Current-edited user: message flood on partylien channels.

Definition at line 313 of file dcc.cpp.


The documentation for this struct was generated from the following file:
Generated on Sun Jul 10 05:45:47 2005 for VooDoo cIRCle by doxygen 1.4.3

Hosted by SourceForge.net Logo