mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
let the past begone in cvs land. welcome to igit igit!
This commit is contained in:
commit
4e601cf1c7
509 changed files with 77963 additions and 0 deletions
22
world/net/utility/onhold.c
Normal file
22
world/net/utility/onhold.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
// $Id: onhold.c,v 1.2 2007/10/02 10:35:46 lynx Exp $ // vim:syntax=lpc:ts=8
|
||||
//
|
||||
// keep a connection on hold. used during shutdown period
|
||||
// to avoid clients and such to reconnect before we are
|
||||
// actually restarting.
|
||||
//
|
||||
#include <net.h>
|
||||
|
||||
onhold(in) {
|
||||
next_input_to(#'onhold);
|
||||
#if DEBUG > 0
|
||||
# ifdef _flag_log_hosts
|
||||
log_file("ONHOLD", "[%s] %s (%O) %O\n", ctime(),
|
||||
query_ip_name(ME) || "?", query_mud_port(ME), in);
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
|
||||
logon() {
|
||||
P1(("On hold: %s (%O)\n", query_ip_name(ME) || "?", query_mud_port(ME)))
|
||||
next_input_to(#'onhold);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue