mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
23 lines
560 B
C
23 lines
560 B
C
|
// $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);
|
||
|
}
|