1
0
Fork 0
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:
PSYC 2009-01-26 20:21:29 +01:00
commit 4e601cf1c7
509 changed files with 77963 additions and 0 deletions

18
world/net/utility/md5.c Normal file
View file

@ -0,0 +1,18 @@
// $Id: md5.c,v 1.6 2007/08/10 19:07:44 lynx Exp $ // vim:syntax=lpc:ts=8
#include <net.h>
inherit NET_PATH "spawn";
handback(mixed digest, closure callback) {
funcall(callback, digest);
unspawn();
}
dmd5(mixed text, closure callback) {
// init(); .... init????
spawn("md5.pl", 0, lambda(({ 'digest }),
({ symbol_function("handback", ME), 'digest,
callback })));
send(text);
}

View 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);
}