Classes | Functions | Variables

irc_bot.cpp File Reference

Main file containing entry point. More...

#include "params.h"
#include "utils/memleak.h"
#include "utils/my_assert.h"
#include "compat.h"
#include "sock_shared.h"
#include <string>
#include <vector>
#include <stack>
#include <list>
#include <map>
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <time.h>
#include <string.h>
#include "utils.h"
#include "log.h"
#include "sock.h"
#include "irc.h"
#include "logic.h"
#include "dcc.h"
#include "botnet.h"
#include "conf.h"
#include "stats.h"
#include "identd.h"
#include "ssl.h"
#include "exec.h"
#include "filesys.h"
#include "lang.h"
#include "match.h"
#include "variable.h"
#include "function.h"
#include "modules.h"
#include "compress.h"
#include "proc.h"
#include "threads.h"
#include "eval.h"
#include "debug1.h"
#include "debug2.h"
#include "mdump/mdump.h"
#include "log2.h"
#include "sock_garbage.h"
#include "var/c_var_array.h"
#include "var/c_var_string.h"
#include "memory/heap_debug2.h"
#include "thread/mutex.h"
#include "misc/shutdown.h"
#include "utils/my_getpid.h"
#include "memory/low_memory_condition.h"
#include "pcre/pattern_cache.h"
#include "pcre/c_pcre.h"
#include "internal_state.h"
#include "misc/c_script_timeout_protector_locker.h"
#include "irc_bot.h"
#include "utils/precomp.h"

Go to the source code of this file.

Classes

struct  c_return_code
 Describes return code of bot (used as an thrown exception to distinguish between this struct and other uncatched exceptions). More...

Functions

void backup ()
 Does shutdown epilog.
void check_action_file ()
 From time to time check "logs/irc_bot.action" file.
void closeall (int fd)
 Close all FDs >= a specified value.
int daemon (bool nochdir, bool noclose, bool stdout_new_pid)
 Detach process from user and disappear into the background returns -1 on failure, but you can't do much except exit in that case since we may already have forked. This is based on the BSD version, so the caller is responsible for things like the umask, etc.
void disp_legals ()
 Displays license information and version.
static void do_epilog (bool self_test=false)
 Deos an epilog on shutdown.
void do_idle ()
 Does an idle tasks.
void do_work ()
 Does a 'working loop' of bot, invoked by internal script.
string get_bot_version ()
 Returns version information.
long get_wall_clock ()
 Gets wall clock in miliseconds.
int main (int argc, char *argv[])
 Entry point.
void my_sleep (int ms)
 Sleeps.
void ProcessMessages ()
 Dummy function for non-windoze platforms.
static void seed_prng ()
string write_kill_log ()
 Writes to log file that bot was asked via DCC / telnet connection to die or restart.

Variables

string binary_name
 Name of binary file (expected how to be the file called).
bool copy_me_to_upper_dir = false
 Contains true if this binary of us should be copied to upper dir (after .upgrade command).
static c_exec_handles_restart_exec_handle = NULL
 Exec handle for restarting bot.
bool spawned_by_service = false
 Contains true if the bot is spawned by service.
string this_instance_binary
 Contains name of this instance's binary file.

Detailed Description

Main file containing entry point.

Definition in file irc_bot.cpp.


Generated on Sat Aug 7 2010 15:21:38 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads