File src/dinoex_telnet.c

* by Dirk Meyer (dinoex) * Copyright (C) 2004-2011 Dirk Meyer * * By using this file, you agree to the terms and conditions set * forth in the GNU General Public License. More information is * available in the LICENSE file. * * If you received this file without documentation, it can be * downloaded from http://iroffer.dinoex.net/ * * $Id: dinoex_telnet.c,v 1.25 2012/08/24 07:55:28 cvs Exp $ *


Included Files

include the headers


Preprocessor definitions

#define _LONGLONG 1

Local Variables

telnet_listen
static int telnet_listen[2U]
Used in: telnet_accept()  
  telnet_close_listen()  
  telnet_open_listen()  
  telnet_perform()  
  telnet_select_fdset()  
  telnet_setup_listen()  

telnet_family
static int telnet_family[2U]

Used in: telnet_accept()  
  telnet_open_listen()  
  telnet_setup_listen()  

Global Function telnet_close_listen()

close all telnet interfaces

void telnet_close_listen ( void )

Prototyped in: src/dinoex_telnet.h
Calls: event_close() src/dinoex_kqueue.c
Called by: shutdown_dinoex() src/dinoex_misc.c
  telnet_reash_listen() src/dinoex_telnet.c
References Variables: telnet_listen src/dinoex_telnet.c

Global Function telnet_perform()

process all telnet connections

void telnet_perform ( void )

Prototyped in: src/dinoex_telnet.h
Calls: telnet_accept() src/dinoex_telnet.c
Called by: mainloop() src/iroffer_main.c
References Variables: gdata src/dinoex_main.c
  telnet_listen src/dinoex_telnet.c

Global Function telnet_reash_listen()

close and setup all telnet interfaces

void telnet_reash_listen ( void )

Prototyped in: src/dinoex_telnet.h
Calls: telnet_close_listen() src/dinoex_telnet.c
  telnet_setup_listen() src/dinoex_telnet.c
Called by: rehash_dinoex() src/dinoex_misc.c
References Variables: gdata src/dinoex_main.c

Global Function telnet_select_fdset()

register active connections for select()

int telnet_select_fdset ( int highests )

Prototyped in: src/dinoex_telnet.h
Called by: mainloop() src/iroffer_main.c
References Variables: gdata src/dinoex_main.c
  telnet_listen src/dinoex_telnet.c

Global Function telnet_setup_listen()

setup all telnet interfaces

unsigned int telnet_setup_listen ( void )

Prototyped in: src/dinoex_telnet.h
Calls: telnet_open_listen() src/dinoex_telnet.c
  updatecontext_f() src/iroffer_utilities.c
Called by: config_dinoex() src/dinoex_misc.c
  telnet_reash_listen() src/dinoex_telnet.c
References Variables: gdata src/dinoex_main.c
  telnet_family src/dinoex_telnet.c
  telnet_listen src/dinoex_telnet.c

Local Function telnet_accept()

accept incoming connection

static void telnet_accept ( unsigned int i )

Calls: ioutput() src/iroffer_utilities.c
  ir_boutput_init() src/iroffer_utilities.c
  irlist_add2() src/iroffer_utilities.c
  irlist_size() src/iroffer_utilities.c
  is_in_badip() src/dinoex_badip.c
  my_getnameinfo() src/dinoex_irc.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  mystrdup2() src/dinoex_utilities.c
  outerror() src/iroffer_utilities.c
  set_socket_nonblocking() src/iroffer_utilities.c
  setup_chat_banner() src/iroffer_dccchat.c
  shutdown_close() src/dinoex_kqueue.c
  shutdowndccchat() src/iroffer_dccchat.c
  to_hostmask() src/dinoex_utilities.c
  updatecontext_f() src/iroffer_utilities.c
  verify_cidr() src/dinoex_misc.c
  __error(), accept(), getsockname(), strerror()
Called by: telnet_perform() src/dinoex_telnet.c
References Variables: gdata src/dinoex_main.c
  gnetwork src/dinoex_main.c
  telnet_family src/dinoex_telnet.c
  telnet_listen src/dinoex_telnet.c

Local Function telnet_open_listen()

static unsigned int telnet_open_listen ( unsigned int i )
Calls: ioutput() src/iroffer_utilities.c
  irlist_get_nth() src/iroffer_utilities.c
  my_getnameinfo() src/dinoex_irc.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  open_listen() src/dinoex_irc.c
  updatecontext_f() src/iroffer_utilities.c
Called by: telnet_setup_listen() src/dinoex_telnet.c
References Variables: gdata src/dinoex_main.c
  telnet_family src/dinoex_telnet.c
  telnet_listen src/dinoex_telnet.c