File src/iroffer_transfer.c

* iroffer by David Johnson (PMG) * Copyright (C) 1998-2005 David Johnson * * 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.org/ * * @(#) iroffer_transfer.c 1.105@(#) * pmg@wellington.i202.centerclick.org|src/iroffer_transfer.c|20050116225153|54665 *


Included Files

include the headers


Preprocessor definitions

#define _LONGLONG 1

Global Function t_checkminspeed()

void t_checkminspeed ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: get_ignore() src/dinoex_irc.c
  ioutput() src/iroffer_utilities.c
  irlist_get_head() src/iroffer_utilities.c
  irlist_get_next() src/iroffer_utilities.c
  irlist_size() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  notice() src/iroffer_utilities.c
  queue_punish_abuse() src/dinoex_queue.c
  t_closeconn() src/iroffer_transfer.c
  to_hostmask() src/dinoex_utilities.c
  updatecontext_f() src/iroffer_utilities.c
  write_statefile() src/iroffer_statefile.c
  snprintf(), strcasecmp()
Called by: mainloop() src/iroffer_main.c
References Variables: gdata src/dinoex_main.c
  gnetwork src/dinoex_main.c

Global Function t_closeconn()

void t_closeconn ( transfer* const t, const char* msg, int errno1 )
Prototyped in: src/iroffer_headers.h
Calls: event_close() src/dinoex_kqueue.c
  ioutput() src/iroffer_utilities.c
  ir_listen_port_connected() src/iroffer_utilities.c
  irlist_delete() src/iroffer_utilities.c
  notice() src/iroffer_utilities.c
  outerror() src/iroffer_utilities.c
  shutdown_close() src/dinoex_kqueue.c
  updatecontext_f() src/iroffer_utilities.c
  upnp_rem_redir() src/upnp.c
  __error(), close(), munmap(), strerror()
Called by: a_bann_hostmask() src/dinoex_admin.c
  a_bannnick() src/dinoex_admin.c
  a_cancel_transfers() src/dinoex_admin.c
  a_close() src/dinoex_admin.c
  geoip_deny() src/dinoex_geoip.c
  look_for_file_changes() src/iroffer_misc.c
  mainloop() src/iroffer_main.c
  reverify_restrictsend() src/iroffer_misc.c
  send_cancel() src/dinoex_user.c
  shutdowniroffer() src/iroffer_misc.c
  t_check_duplicateip() src/dinoex_transfer.c
  t_check_ip_access() src/dinoex_transfer.c
  t_checkminspeed() src/iroffer_transfer.c
  t_connected() src/dinoex_transfer.c
  t_establishcon() src/iroffer_transfer.c
  t_istimeout() src/iroffer_transfer.c
  t_passive() src/dinoex_transfer.c
  t_readjunk() src/iroffer_transfer.c
  t_setup_send() src/iroffer_transfer.c
  t_setuplisten() src/iroffer_transfer.c
  t_transfersome() src/iroffer_transfer.c
References Variables: gdata src/dinoex_main.c
  gnetwork src/dinoex_main.c

Global Function t_establishcon()

void t_establishcon ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: event_close() src/dinoex_kqueue.c
  ir_listen_port_connected() src/iroffer_utilities.c
  outerror() src/iroffer_utilities.c
  t_closeconn() src/iroffer_transfer.c
  t_setup_send() src/iroffer_transfer.c
  updatecontext_f() src/iroffer_utilities.c
  __error(), accept(), strerror()
Called by: t_check_new_connection() src/dinoex_transfer.c

Global Function t_flushed()

void t_flushed ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: ioutput() src/iroffer_utilities.c
  mydelete2() src/iroffer_utilities.c
  mymalloc2() src/iroffer_utilities.c
  notice() src/iroffer_utilities.c
  number_of_pack() src/dinoex_misc.c
  queue_pack_limit() src/dinoex_queue.c
  shutdown_close() src/dinoex_kqueue.c
  updatecontext_f() src/iroffer_utilities.c
  close(), snprintf(), strlen()
Called by: t_perform() src/dinoex_transfer.c
References Variables: gdata src/dinoex_main.c

Global Function t_initvalues()

void t_initvalues ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: updatecontext_f() src/iroffer_utilities.c
Called by: create_transfer() src/dinoex_transfer.c
References Variables: gdata src/dinoex_main.c
  gnetwork src/dinoex_main.c

Global Function t_istimeout()

void t_istimeout ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: ioutput() src/iroffer_utilities.c
  t_closeconn() src/iroffer_transfer.c
  updatecontext_f() src/iroffer_utilities.c
Called by: t_perform() src/dinoex_transfer.c
References Variables: gdata src/dinoex_main.c

Global Function t_readjunk()

void t_readjunk ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: hexdump() src/dinoex_misc.c
  ioutput() src/iroffer_utilities.c
  t_closeconn() src/iroffer_transfer.c
  updatecontext_f() src/iroffer_utilities.c
  verify_acknowlede() src/dinoex_transfer.c
  __error(), recv()
Called by: t_perform() src/dinoex_transfer.c
References Variables: gdata src/dinoex_main.c

Global Function t_remind()

void t_remind ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: get_user_nick() src/dinoex_irc.c
  notice() src/iroffer_utilities.c
  t_start_dcc_send() src/dinoex_transfer.c
  updatecontext_f() src/iroffer_utilities.c
Called by: t_perform() src/dinoex_transfer.c
References Variables: gdata src/dinoex_main.c
  gnetwork src/dinoex_main.c

Global Function t_setresume()

void t_setresume ( transfer* const t, const char* amt )
Prototyped in: src/iroffer_headers.h
Calls: atoull() src/iroffer_utilities.c
  updatecontext_f() src/iroffer_utilities.c
Called by: t_find_resume() src/dinoex_transfer.c

Global Function t_setup_send()

void t_setup_send ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: ioutput() src/iroffer_utilities.c
  ir_setsockopt() src/dinoex_irc.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
  t_check_ip_access() src/dinoex_transfer.c
  t_closeconn() src/iroffer_transfer.c
  updatecontext_f() src/iroffer_utilities.c
  __bswap32(), __error(), getpeername(), getsockname(), open(), strerror()
Called by: t_connected() src/dinoex_transfer.c
  t_establishcon() src/iroffer_transfer.c
References Variables: gdata src/dinoex_main.c

Global Function t_setuplisten()

void t_setuplisten ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: irc_open_listen() src/dinoex_irc.c
  t_closeconn() src/iroffer_transfer.c
  updatecontext_f() src/iroffer_utilities.c
  __error()
Called by: t_setup_dcc() src/dinoex_transfer.c

Global Function t_transfersome()

void t_transfersome ( transfer* const t )
Prototyped in: src/iroffer_headers.h
Calls: ioutput() src/iroffer_utilities.c
  irlist_add2() src/iroffer_utilities.c
  irlist_delete() src/iroffer_utilities.c
  irlist_get_head() src/iroffer_utilities.c
  irlist_get_next() src/iroffer_utilities.c
  outerror() src/iroffer_utilities.c
  t_closeconn() src/iroffer_transfer.c
  updatecontext_f() src/iroffer_utilities.c
  __error(), lseek(), mmap(), munmap(), read(), send(), sendfile(), strerror()
Called by: t_perform() src/dinoex_transfer.c
References Variables: gdata src/dinoex_main.c