File comm.c

* main game loop and related stuff *


Included Files


Preprocessor definitions

#define __COMM_C__

#define INVALID_SOCKET 1

#define FD_ZERO( x )

#define FD_SET( x, y )

#define FD_ISSET( x, y )

#define FD_CLR( x, y )

#define plant_magic( x )

#define test_magic( x )

#define CHECK_NULL( pointer, expression )

#define SENDOK( ch )


Global Variable logfile

FILE* logfile
Visible in:  act.comm.c
   act.informative.c
   act.item.c
   act.movement.c
   act.offensive.c
   act.other.c
   act.social.c
   act.wizard.c
   alias.c
   ban.c
   boards.c
   castle.c
   class.c
   comm.c
   db.c
   fight.c
   graph.c
   handler.c
   house.c
   interpreter.c
   limits.c
   magic.c
   mail.c
   mobact.c
   modify.c
   objsave.c
   olc.c
   shop.c
   spec_assign.c
   spec_procs.c
   spell_parser.c
   spells.c
   utils.c
   weather.c
Used in: basic_mud_log()utils.c
  open_logfile()comm.c
  setup_log()comm.c

Global Variable descriptor_list

struct descriptor_data* descriptor_list
Visible in:  act.comm.c
   act.informative.c
   act.movement.c
   act.offensive.c
   act.other.c
   act.social.c
   act.wizard.c
   ban.c
   boards.c
   castle.c
   comm.c
   db.c
   handler.c
   interpreter.c
   magic.c
   objsave.c
   spec_procs.c
   spells.c
   utils.c
Used in: Board_remove_msg()boards.c
  Crash_save_all()objsave.c
  Valid_Name()ban.c
  check_idle_passwords()comm.c
  close_socket()comm.c
  do_dc()act.wizard.c
  do_force()act.wizard.c
  do_gecho()act.wizard.c
  do_gen_comm()act.comm.c
  do_page()act.comm.c
  do_qcomm()act.comm.c
  do_show()act.wizard.c
  do_trans()act.wizard.c
  do_users()act.informative.c
  do_who()act.informative.c
  do_wiznet()act.wizard.c
  extract_char_final()handler.c
  file_to_string_alloc()db.c
  game_loop()comm.c
  init_game()comm.c
  is_empty()db.c
  mudlog()utils.c
  new_descriptor()comm.c
  perform_dupe_check()interpreter.c
  perform_immort_where()act.informative.c
  perform_mortal_where()act.informative.c
  record_usage()comm.c
  send_to_all()comm.c
  send_to_outdoor()comm.c

Global Variable bufpool

struct txt_block* bufpool
Visible in:  comm.c
Used in: flush_queues()comm.c
  process_output()comm.c
  write_to_output()comm.c

Global Variable buf_largecount

int buf_largecount
Visible in:  act.wizard.c
   comm.c
Used in: do_show()act.wizard.c
  write_to_output()comm.c

Global Variable buf_overflows

int buf_overflows
Visible in:  act.wizard.c
   comm.c
Used in: do_show()act.wizard.c
  write_to_output()comm.c

Global Variable buf_switches

int buf_switches
Visible in:  act.wizard.c
   comm.c
Used in: do_show()act.wizard.c
  write_to_output()comm.c

Global Variable circle_shutdown

int circle_shutdown
Visible in:  act.wizard.c
   comm.c
Used in: do_shutdown()act.wizard.c
  game_loop()comm.c

Global Variable circle_reboot

int circle_reboot
Visible in:  act.wizard.c
   comm.c
Used in: do_shutdown()act.wizard.c
  init_game()comm.c

Global Variable no_specials

int no_specials
Visible in:  comm.c
   db.c
   interpreter.c
   mobact.c
Used in: boot_db()db.c
  boot_world()db.c
  command_interpreter()interpreter.c
  main()comm.c
  mobile_activity()mobact.c

Global Variable max_players

int max_players
Visible in:  comm.c
Used in: init_game()comm.c
  new_descriptor()comm.c

Global Variable tics

int tics
Visible in:  comm.c
Used in: checkpointing()comm.c
  game_loop()comm.c

Global Variable scheck

int scheck
Visible in:  comm.c
   db.c
Used in: check_object_spell_number()db.c
  main()comm.c

Global Variable null_time

struct timeval null_time
Visible in:  comm.c
Used in: game_loop()comm.c
  timediff()comm.c

Global Variable ACTNULL

const char* ACTNULL
Visible in:  comm.c
Used in: perform_act()comm.c

External Variables

ban_list
extern struct ban_list_element* ban_list
Defined in: ban.c

num_invalid
extern int num_invalid
Defined in: ban.c

GREETINGS
extern char* GREETINGS
Defined in: db.c

circlemud_version
extern const char* circlemud_version
Defined in: constants.c

circle_restrict
extern int circle_restrict
Defined in: db.c

mini_mud
extern int mini_mud
Defined in: db.c

no_rent_check
extern int no_rent_check
Defined in: db.c

player_fl
extern FILE* player_fl
Defined in: db.c

DFLT_PORT
extern ush_int DFLT_PORT
Defined in: config.c

DFLT_DIR
extern const char* DFLT_DIR
Defined in: config.c

DFLT_IP
extern const char* DFLT_IP
Defined in: config.c

LOGNAME
extern const char* LOGNAME
Defined in: config.c

max_playing
extern int max_playing
Defined in: config.c

nameserver_is_slow
extern int nameserver_is_slow
Defined in: config.c

auto_save
extern int auto_save
Defined in: config.c

autosave_time
extern int autosave_time
Defined in: config.c

world
extern struct room_data* world
Defined in: db.c

time_info
extern struct time_info_data time_info
Defined in: db.c

help
extern char* help
Defined in: db.c


Global Function act()

void act ( const char* str, int hide_invisible, struct char_data* ch, struct obj_data* obj, const void* vict_obj, int type )
Prototyped in: comm.h
Calls: basic_mud_log()utils.c
  perform_act()comm.c
Called by: Board_remove_msg()boards.c
  Board_show_board()boards.c
  Board_write_message()boards.c
  Crash_offer_rent()objsave.c
  Crash_rent_deadline()objsave.c
  Crash_report_rent()objsave.c
  Crash_report_unrentables()objsave.c
  add_follower()utils.c
  appear()fight.c
  bank()spec_procs.c
  banzaii()castle.c
  block_way()castle.c
  call_magic()spell_parser.c
  can_take_obj()act.item.c
  castle_cleaner()castle.c
  check_idling()limits.c
  cityguard()spec_procs.c
  close_socket()comm.c
  dam_message()fight.c
  damage()fight.c
  death_cry()fight.c
  do_action()act.social.c
  do_advance()act.wizard.c
  do_assist()act.offensive.c
  do_backstab()act.offensive.c
  do_doorcmd()act.movement.c
  do_drink()act.item.c
  do_drop()act.item.c
  do_eat()act.item.c
  do_echo()act.wizard.c
  do_flee()act.offensive.c
  do_follow()act.movement.c
  do_force()act.wizard.c
  do_gen_comm()act.comm.c
  do_gen_door()act.movement.c
  do_get()act.item.c
  do_goto()act.wizard.c
  do_group()act.other.c
  do_gsay()act.comm.c
  do_hit()act.offensive.c
  do_insult()act.social.c
  do_kill()act.offensive.c
  do_load()act.wizard.c
  do_npc_rescue()castle.c
  do_order()act.offensive.c
  do_page()act.comm.c
  do_pour()act.item.c
  do_purge()act.wizard.c
  do_put()act.item.c
  do_qcomm()act.comm.c
  do_quit()act.other.c
  do_rescue()act.offensive.c
  do_rest()act.movement.c
  do_restore()act.wizard.c
  do_say()act.comm.c
  do_simple_move()act.movement.c
  do_sit()act.movement.c
  do_sleep()act.movement.c
  do_spec_comm()act.comm.c
  do_stand()act.movement.c
  do_steal()act.other.c
  do_teleport()act.wizard.c
  do_trans()act.wizard.c
  do_ungroup()act.other.c
  do_wake()act.movement.c
  do_wear()act.item.c
  do_wizutil()act.wizard.c
  do_write()act.comm.c
  dump()spec_procs.c
  equip_char()handler.c
  fido()spec_procs.c
  fry_victim()castle.c
  game_loop()comm.c
  gen_receptionist()objsave.c
  get_from_container()act.item.c
  guild_guard()spec_procs.c
  is_tell_ok()act.comm.c
  janitor()spec_procs.c
  jerry()castle.c
  king_welmar()castle.c
  list_one_char()act.informative.c
  look_at_char()act.informative.c
  look_at_target()act.informative.c
  mag_affects()magic.c
  mag_alter_objs()magic.c
  mag_areas()magic.c
  mag_creations()magic.c
  mag_damage()magic.c
  mag_materials()magic.c
  mag_objectmagic()spell_parser.c
  mag_summons()magic.c
  mag_unaffects()magic.c
  mayor()spec_procs.c
  mobile_activity()mobact.c
  nanny()interpreter.c
  npc_steal()spec_procs.c
  perform_drop()act.item.c
  perform_drop_gold()act.item.c
  perform_dupe_check()interpreter.c
  perform_get_from_container()act.item.c
  perform_get_from_room()act.item.c
  perform_give()act.item.c
  perform_give_gold()act.item.c
  perform_group()act.other.c
  perform_immort_invis()act.wizard.c
  perform_move()act.movement.c
  perform_put()act.item.c
  perform_remove()act.item.c
  perform_tell()act.comm.c
  perform_violence()fight.c
  perform_wear()act.item.c
  pet_shops()spec_procs.c
  peter()castle.c
  point_update()limits.c
  postmaster_check_mail()mail.c
  postmaster_receive_mail()mail.c
  postmaster_send_mail()mail.c
  print_group()act.other.c
  say_spell()spell_parser.c
  shop_keeper()shop.c
  shopping_buy()shop.c
  shopping_sell()shop.c
  skill_message()fight.c
  snake()spec_procs.c
  spell_charm()spells.c
  spell_create_water()spells.c
  spell_detect_poison()spells.c
  spell_enchant_weapon()spells.c
  spell_recall()spells.c
  spell_summon()spells.c
  spell_teleport()spells.c
  stop_follower()utils.c
  training_master()castle.c
  update_char_objects()handler.c
  wear_message()act.item.c
References Variables: dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function check_idle_passwords()

void check_idle_passwords ( void )
Prototyped in: comm.c
Calls: echo_on()comm.c
  write_to_output()comm.c
Called by: heartbeat()comm.c
References Variables: descriptor_listcomm.c

Global Function checkpointing()

void checkpointing ( int sig )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  abort()
Used in: signal_setup()comm.c
References Variables: ticscomm.c

Global Function circle_sleep()

void circle_sleep ( struct timeval* timeout )
Prototyped in: comm.c
Calls: __errno_location(), exit(), perror(), select()
Called by: game_loop()comm.c

Global Function close_socket()

void close_socket ( struct descriptor_data* d )
Prototyped in: comm.h
Calls: MAX()utils.c
  act()comm.c
  basic_mud_log()utils.c
  flush_queues()comm.c
  free_char()db.c
  mudlog()utils.c
  save_char()db.c
  write_to_output()comm.c
  close(), free(), sprintf()
Called by: game_loop()comm.c
  init_game()comm.c
References Variables: descriptor_listcomm.c
  dummy_mobdb.c

Global Function echo_off()

void echo_off ( struct descriptor_data* d )
Prototyped in: comm.c
Calls: write_to_output()comm.c
Called by: nanny()interpreter.c

Global Function echo_on()

void echo_on ( struct descriptor_data* d )
Prototyped in: comm.c
Calls: write_to_output()comm.c
Called by: check_idle_passwords()comm.c
  nanny()interpreter.c

Global Function flush_queues()

void flush_queues ( struct descriptor_data* d )
Prototyped in: comm.c
Calls: get_from_q()comm.c
Called by: close_socket()comm.c
References Variables: buf2db.c
  bufpoolcomm.c

Global Function game_loop()

void game_loop ( socket_t mother_desc )
Prototyped in: comm.c
Calls: act()comm.c
  basic_mud_log()utils.c
  char_from_room()handler.c
  char_to_room()handler.c
  circle_sleep()comm.c
  close_socket()comm.c
  command_interpreter()interpreter.c
  get_from_q()comm.c
  heartbeat()comm.c
  make_prompt()comm.c
  nanny()interpreter.c
  new_descriptor()comm.c
  perform_alias()interpreter.c
  process_input()comm.c
  process_output()comm.c
  show_string()modify.c
  string_add()modify.c
  timeadd()comm.c
  timediff()comm.c
  write_to_descriptor()comm.c
  __errno_location(), gettimeofday(), perror(), select()
Called by: init_game()comm.c
References Variables: circle_shutdowncomm.c
  descriptor_listcomm.c
  null_timecomm.c
  ticscomm.c

Global Function get_bind_addr()

struct in_addr* get_bind_addr ( void )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  parse_ip()comm.c
  htonl(), inet_ntoa(), memset()
Called by: init_socket()comm.c
References Variables: DFLT_IPconfig.c

Global Function get_from_q()

int get_from_q ( struct txt_q* queue, char* dest, int* aliased )
Prototyped in: comm.c
Calls: free(), strcpy()
Called by: flush_queues()comm.c
  game_loop()comm.c

Global Function get_max_players()

int get_max_players ( void )
Prototyped in: comm.c
Calls: MIN()utils.c
  basic_mud_log()utils.c
  exit(), getrlimit(), perror(), setrlimit()
Called by: init_game()comm.c
References Variables: max_playingconfig.c

Global Function heartbeat()

void heartbeat ( int pulse )
Prototyped in: comm.c
Calls: Crash_save_all()objsave.c
  House_save_all()house.c
  affect_update()magic.c
  check_idle_passwords()comm.c
  extract_pending_chars()handler.c
  mobile_activity()mobact.c
  perform_violence()fight.c
  point_update()limits.c
  record_usage()comm.c
  sanity_check()comm.c
  weather_and_time()weather.c
  zone_update()db.c
  fflush()
Called by: game_loop()comm.c
References Variables: auto_saveconfig.c
  autosave_timeconfig.c
  player_fldb.c

Global Function hupsig()

void hupsig ( int sig )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  exit()
Used in: signal_setup()comm.c

Global Function init_game()

void init_game ( ush_int port )
Prototyped in: comm.c
Calls: Crash_save_all()objsave.c
  basic_mud_log()utils.c
  boot_db()db.c
  circle_srandom()random.c
  close_socket()comm.c
  game_loop()comm.c
  get_max_players()comm.c
  init_socket()comm.c
  signal_setup()comm.c
  touch()utils.c
  close(), exit(), fclose(), remove(), time()
Called by: main()comm.c
References Variables: circle_rebootcomm.c
  descriptor_listcomm.c
  max_playerscomm.c
  player_fldb.c

Global Function init_socket()

socket_t init_socket ( ush_int port )
Prototyped in: comm.c
Calls: get_bind_addr()comm.c
  nonblock()comm.c
  set_sendbuf()comm.c
  bind(), close(), exit(), htons(), listen(), memset(), perror(), setsockopt(), socket()
Called by: init_game()comm.c

Global Function main()

int main ( int argc, char** argv )
Calls: basic_mud_log()utils.c
  boot_world()db.c
  init_game()comm.c
  setup_log()comm.c
  atoi(), chdir(), exit(), perror(), printf(), puts()
References Variables: DFLT_DIRconfig.c
  DFLT_PORTconfig.c
  LOGNAMEconfig.c
  argdb.c
  bufdb.c
  buf1db.c
  buf2db.c
  circle_restrictdb.c
  circlemud_versionconstants.c
  mini_muddb.c
  no_rent_checkdb.c
  no_specialscomm.c
  scheckcomm.c

Global Function make_prompt()

char* make_prompt ( struct descriptor_data* d )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  sprintf(), strcat(), strcpy()
Called by: game_loop()comm.c
  process_output()comm.c
References Variables: dummy_mobdb.c

Global Function my_signal()

sigfunc* my_signal ( int signo, sigfunc* func )
Prototyped in: comm.c
Calls: sigaction(), sigemptyset()
Called by: reap()comm.c
  signal_setup()comm.c

Global Function new_descriptor()

int new_descriptor ( socket_t s )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  isbanned()ban.c
  mudlog()utils.c
  nonblock()comm.c
  set_sendbuf()comm.c
  write_to_descriptor()comm.c
  write_to_output()comm.c
  abort(), accept(), calloc(), close(), free(), gethostbyaddr(), inet_ntoa(), memset(), perror(), sprintf(), strncpy(), time()
Called by: game_loop()comm.c
References Variables: GREETINGSdb.c
  buf2db.c
  descriptor_listcomm.c
  max_playerscomm.c
  nameserver_is_slowconfig.c

Global Function nonblock()

void nonblock ( socket_t s )
Prototyped in: comm.c
Calls: exit(), fcntl(), perror()
Called by: init_socket()comm.c
  new_descriptor()comm.c

Global Function open_logfile()

int open_logfile ( const char* filename, FILE* stderr_fp )
Prototyped in: comm.c
Calls: __errno_location(), fopen(), freopen(), printf(), strerror()
Called by: setup_log()comm.c
References Variables: logfilecomm.c

Global Function parse_ip()

int parse_ip ( const char* addr, struct in_addr* inaddr )
Prototyped in: comm.c
Calls: inet_aton()
Called by: get_bind_addr()comm.c

Global Function perform_act()

void perform_act ( const char* orig, struct char_data* ch, struct obj_data* obj, const void* vict_obj, const struct char_data* to )
Prototyped in: comm.h
Calls: CAP()utils.c
  basic_mud_log()utils.c
  fname()handler.c
  write_to_output()comm.c
  strchr()
Called by: act()comm.c
  say_spell()spell_parser.c
References Variables: ACTNULLcomm.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function perform_socket_read()

ssize_t perform_socket_read ( socket_t desc, char* read_point, size_t space_left )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  __errno_location(), perror(), read()
Called by: process_input()comm.c

Global Function perform_socket_write()

ssize_t perform_socket_write ( socket_t desc, const char* txt, size_t length )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  __errno_location(), write()
Called by: write_to_descriptor()comm.c

Global Function perform_subst()

int perform_subst ( struct descriptor_data* t, char* orig, char* subst )
Prototyped in: comm.c
Calls: write_to_output()comm.c
  strchr(), strcpy(), strlen(), strncat(), strncpy(), strstr()
Called by: process_input()comm.c

Global Function process_input()

int process_input ( struct descriptor_data* t )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  is_abbrev()interpreter.c
  perform_socket_read()comm.c
  perform_subst()comm.c
  skip_spaces()interpreter.c
  str_dup()utils.c
  write_to_descriptor()comm.c
  write_to_output()comm.c
  write_to_q()comm.c
  free(), sprintf(), strcpy(), strlen()
Called by: game_loop()comm.c

Global Function process_output()

int process_output ( struct descriptor_data* t )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
  make_prompt()comm.c
  write_to_descriptor()comm.c
  write_to_output()comm.c
  strcat(), strcpy(), strncat()
Called by: game_loop()comm.c
References Variables: bufpoolcomm.c
  dummy_mobdb.c

Global Function reap()

void reap ( int sig )
Prototyped in: comm.c
Calls: my_signal()comm.c
  waitpid()
Used in: reap()comm.c
  signal_setup()comm.c
References Functions: reap()comm.c

Global Function record_usage()

void record_usage ( void )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
Called by: heartbeat()comm.c
References Variables: descriptor_listcomm.c

Global Function reread_wizlists()

void reread_wizlists ( int sig )
Prototyped in: comm.c
Calls: mudlog()utils.c
  reboot_wizlists()db.c
Used in: signal_setup()comm.c

Global Function sanity_check()

void sanity_check ( void )
Prototyped in: comm.c
Calls: basic_mud_log()utils.c
Called by: heartbeat()comm.c
References Variables: argdb.c
  bufdb.c
  buf1db.c
  buf2db.c

Global Function send_to_all()

void send_to_all ( const char* messg )
Prototyped in: comm.h
Calls: write_to_output()comm.c
Called by: do_shutdown()act.wizard.c
References Variables: descriptor_listcomm.c

Global Function send_to_char()

void send_to_char ( const char* messg, struct char_data* ch )
Prototyped in: comm.h
Calls: write_to_output()comm.c
Called by: Board_display_msg()boards.c
  Board_remove_msg()boards.c
  Board_show_board()boards.c
  Board_write_message()boards.c
  Crash_listrent()objsave.c
  Crash_load()objsave.c
  House_list_guests()house.c
  House_listrent()house.c
  affect_update()magic.c
  bank()spec_procs.c
  block_way()castle.c
  call_magic()spell_parser.c
  cast_spell()spell_parser.c
  check_idling()limits.c
  check_killer()fight.c
  command_interpreter()interpreter.c
  dam_message()fight.c
  damage()fight.c
  diag_char_to_char()act.informative.c
  do_action()act.social.c
  do_advance()act.wizard.c
  do_alias()interpreter.c
  do_assist()act.offensive.c
  do_at()act.wizard.c
  do_auto_exits()act.informative.c
  do_backstab()act.offensive.c
  do_ban()ban.c
  do_bash()act.offensive.c
  do_cast()spell_parser.c
  do_color()act.informative.c
  do_commands()act.informative.c
  do_consider()act.informative.c
  do_date()act.wizard.c
  do_dc()act.wizard.c
  do_diagnose()act.informative.c
  do_display()act.other.c
  do_doorcmd()act.movement.c
  do_drink()act.item.c
  do_drop()act.item.c
  do_eat()act.item.c
  do_echo()act.wizard.c
  do_enter()act.movement.c
  do_equipment()act.informative.c
  do_examine()act.informative.c
  do_exits()act.informative.c
  do_flee()act.offensive.c
  do_follow()act.movement.c
  do_force()act.wizard.c
  do_gecho()act.wizard.c
  do_gen_comm()act.comm.c
  do_gen_door()act.movement.c
  do_gen_ps()act.informative.c
  do_gen_tog()act.other.c
  do_gen_write()act.other.c
  do_get()act.item.c
  do_give()act.item.c
  do_gold()act.informative.c
  do_grab()act.item.c
  do_group()act.other.c
  do_gsay()act.comm.c
  do_hcontrol()house.c
  do_help()act.informative.c
  do_hide()act.other.c
  do_hit()act.offensive.c
  do_house()house.c
  do_insult()act.social.c
  do_inventory()act.informative.c
  do_invis()act.wizard.c
  do_kick()act.offensive.c
  do_kill()act.offensive.c
  do_last()act.wizard.c
  do_leave()act.movement.c
  do_levels()act.informative.c
  do_load()act.wizard.c
  do_look()act.informative.c
  do_not_here()act.other.c
  do_olc()olc.c
  do_order()act.offensive.c
  do_page()act.comm.c
  do_poofset()act.wizard.c
  do_pour()act.item.c
  do_practice()act.other.c
  do_purge()act.wizard.c
  do_put()act.item.c
  do_qcomm()act.comm.c
  do_quit()act.other.c
  do_reboot()db.c
  do_remove()act.item.c
  do_reply()act.comm.c
  do_report()act.other.c
  do_rescue()act.offensive.c
  do_rest()act.movement.c
  do_restore()act.wizard.c
  do_return()act.wizard.c
  do_save()act.other.c
  do_say()act.comm.c
  do_score()act.informative.c
  do_send()act.wizard.c
  do_set()act.wizard.c
  do_show()act.wizard.c
  do_shutdown()act.wizard.c
  do_simple_move()act.movement.c
  do_sit()act.movement.c
  do_skillset()modify.c
  do_sleep()act.movement.c
  do_sneak()act.other.c
  do_snoop()act.wizard.c
  do_spec_comm()act.comm.c
  do_split()act.other.c
  do_stand()act.movement.c
  do_stat()act.wizard.c
  do_stat_character()act.wizard.c
  do_stat_object()act.wizard.c
  do_stat_room()act.wizard.c
  do_steal()act.other.c
  do_switch()act.wizard.c
  do_syslog()act.wizard.c
  do_teleport()act.wizard.c
  do_tell()act.comm.c
  do_time()act.informative.c
  do_title()act.other.c
  do_toggle()act.informative.c
  do_track()graph.c
  do_trans()act.wizard.c
  do_unban()ban.c
  do_ungroup()act.other.c
  do_use()act.other.c
  do_users()act.informative.c
  do_visible()act.other.c
  do_vnum()act.wizard.c
  do_vstat()act.wizard.c
  do_wake()act.movement.c
  do_wear()act.item.c
  do_weather()act.informative.c
  do_who()act.informative.c
  do_wield()act.item.c
  do_wimpy()act.other.c
  do_wizlock()act.wizard.c
  do_wiznet()act.wizard.c
  do_wizutil()act.wizard.c
  do_write()act.comm.c
  do_zreset()act.wizard.c
  dump()spec_procs.c
  find_door()act.movement.c
  find_eq_pos()act.item.c
  find_target_room()act.wizard.c
  fry_victim()castle.c
  gain_condition()limits.c
  gain_exp()limits.c
  gain_exp_regardless()limits.c
  gen_receptionist()objsave.c
  get_check_money()act.item.c
  get_from_container()act.item.c
  get_from_room()act.item.c
  give_find_vict()act.item.c
  guild()spec_procs.c
  guild_guard()spec_procs.c
  handle_detailed_list()shop.c
  hcontrol_build_house()house.c
  hcontrol_destroy_house()house.c
  hcontrol_list_houses()house.c
  hcontrol_pay_house()house.c
  is_tell_ok()act.comm.c
  list_char_to_char()act.informative.c
  list_detailed_shop()shop.c
  list_obj_to_char()act.informative.c
  list_one_char()act.informative.c
  look_at_char()act.informative.c
  look_at_room()act.informative.c
  look_at_target()act.informative.c
  look_in_direction()act.informative.c
  look_in_obj()act.informative.c
  mag_affects()magic.c
  mag_alter_objs()magic.c
  mag_creations()magic.c
  mag_materials()magic.c
  mag_objectmagic()spell_parser.c
  mag_points()magic.c
  mag_summons()magic.c
  mag_unaffects()magic.c
  mudlog()utils.c
  nanny()interpreter.c
  ok_pick()act.movement.c
  olc_bitvector()olc.c
  olc_interpreter()olc.c
  olc_string()olc.c
  page_string()modify.c
  perform_drop_gold()act.item.c
  perform_give_gold()act.item.c
  perform_group_gain()fight.c
  perform_immort_invis()act.wizard.c
  perform_immort_vis()act.wizard.c
  perform_immort_where()act.informative.c
  perform_mortal_where()act.informative.c
  perform_move()act.movement.c
  perform_set()act.wizard.c
  perform_tell()act.comm.c
  perform_violence()fight.c
  perform_wear()act.item.c
  pet_shops()spec_procs.c
  postmaster()mail.c
  print_group()act.other.c
  print_object_location()act.informative.c
  shopping_buy()shop.c
  shopping_sell()shop.c
  show_obj_to_char()act.informative.c
  show_shops()shop.c
  show_string()modify.c
  skill_message()fight.c
  solo_gain()fight.c
  spell_charm()spells.c
  spell_detect_poison()spells.c
  spell_identify()spells.c
  spell_locate_object()spells.c
  spell_summon()spells.c
  stop_snooping()act.wizard.c
  string_add()modify.c
  training_master()castle.c
  update_char_objects()handler.c
  vnum_mobile()db.c
  vnum_object()db.c

Global Function send_to_outdoor()

void send_to_outdoor ( const char* messg )
Prototyped in: comm.h
Calls: write_to_output()comm.c
Called by: another_hour()weather.c
  weather_change()weather.c
References Variables: descriptor_listcomm.c
  worlddb.c

Global Function send_to_room()

void send_to_room ( const char* messg, room_rnum room )
Prototyped in: comm.h
Calls: write_to_output()comm.c
Called by: death_cry()fight.c
  do_purge()act.wizard.c
References Variables: worlddb.c

Global Function set_sendbuf()

int set_sendbuf ( socket_t s )
Prototyped in: comm.c
Calls: perror(), setsockopt()
Called by: init_socket()comm.c
  new_descriptor()comm.c

Global Function setup_log()

void setup_log ( const char* filename, int fd )
Prototyped in: comm.c
Calls: open_logfile()comm.c
  exit(), puts()
Called by: main()comm.c
References Variables: logfilecomm.c

Global Function signal_setup()

void signal_setup ( void )
Prototyped in: comm.c
Calls: my_signal()comm.c
  setitimer()
Called by: init_game()comm.c
References Functions: checkpointing()comm.c
  hupsig()comm.c
  reap()comm.c
  reread_wizlists()comm.c
  unrestrict_game()comm.c

Global Function timeadd()

void timeadd ( struct timeval* rslt, struct timeval* a, struct timeval* b )
Prototyped in: comm.c
Called by: game_loop()comm.c

Global Function timediff()

void timediff ( struct timeval* rslt, struct timeval* a, struct timeval* b )
Prototyped in: comm.c
Called by: game_loop()comm.c
References Variables: null_timecomm.c

Global Function unrestrict_game()

void unrestrict_game ( int sig )
Prototyped in: comm.c
Calls: mudlog()utils.c
Used in: signal_setup()comm.c
References Variables: ban_listban.c
  circle_restrictdb.c
  num_invalidban.c

Global Function write_to_descriptor()

int write_to_descriptor ( socket_t desc, const char* txt )
Prototyped in: comm.h
Calls: basic_mud_log()utils.c
  perform_socket_write()comm.c
  perror(), strlen()
Called by: game_loop()comm.c
  new_descriptor()comm.c
  process_input()comm.c
  process_output()comm.c

Global Function write_to_output()

void write_to_output ( const char* txt, struct descriptor_data* t )
Prototyped in: comm.h
Calls: basic_mud_log()utils.c
  abort(), calloc(), perror(), strcat(), strcpy(), strlen()
Called by: check_idle_passwords()comm.c
  close_socket()comm.c
  echo_off()comm.c
  echo_on()comm.c
  extract_char_final()handler.c
  nanny()interpreter.c
  new_descriptor()comm.c
  perform_act()comm.c
  perform_dupe_check()interpreter.c
  perform_subst()comm.c
  process_input()comm.c
  process_output()comm.c
  send_to_all()comm.c
  send_to_char()comm.c
  send_to_outdoor()comm.c
  send_to_room()comm.c
  string_add()modify.c
References Variables: buf_largecountcomm.c
  buf_overflowscomm.c
  buf_switchescomm.c
  bufpoolcomm.c

Global Function write_to_q()

void write_to_q ( const char* txt, struct txt_q* queue, int aliased )
Prototyped in: comm.h
Calls: basic_mud_log()utils.c
  str_dup()utils.c
  abort(), calloc(), perror()
Called by: perform_complex_alias()interpreter.c
  process_input()comm.c