-/* $Id: httpd.js,v 1.46 2006/11/26 05:58:55 mmondor Exp $ */
+/* $Id: httpd.js,v 1.47 2007/01/03 07:21:40 mmondor Exp $ */
/*
* Copyright (c) 2005-2006, Matthew Mondor
* some testing will be required.
* - Implement logging
* - Enhance the JS shell to report errors better
+ * - XXX There is some bug where if multiple listening sockets are used one
+ * eventually appears to be garbage collected!
+ * - XXX Fix n/a bug in Location: when no Host: is provided for HTTP 1.0/1.1
*
* Transfer states
* - file to client, must take into account client connection status.
* Server identification
*/
const SERVER_VERSION = 'mmondor_js_httpd/0.2.1 (NetBSD)';
-const SERVER_CVSID = '$Id: httpd.js,v 1.46 2006/11/26 05:58:55 mmondor Exp $';
+const SERVER_CVSID = '$Id: httpd.js,v 1.47 2007/01/03 07:21:40 mmondor Exp $';
-/* $Id: config.js,v 1.4 2006/11/27 15:18:17 mmondor Exp $ */
+/* $Id: config.js,v 1.5 2007/01/03 07:21:32 mmondor Exp $ */
/* Configuration */
var irc_channel = '#gurumeditation';
var irc_servers = [
+ 'irc.stealth.net:6667'
+ /*
'irc.freenode.net:6667'
+ */
/*
'ginseng.xisop:6667',
'mudbug.org:6667'
-/* $Id: irclog.js,v 1.14 2006/11/30 18:32:48 mmondor Exp $ */
+/* $Id: irclog.js,v 1.15 2007/01/03 07:21:32 mmondor Exp $ */
-var irc_version = '$Id: irclog.js,v 1.14 2006/11/30 18:32:48 mmondor Exp $';
+/*
+ * XXX TODO XXX
+ * - Fix month which currently stats at 0 rather than 1
+ * - Use an FD instead of a File so that we may also implement timeouts.
+ * This is because despite TCP_KEEP_ALIVE the connection can occasionally
+ * remain locked for a long time with inactivity. The client should
+ * reconnect to a server once it reaches a configurable input timeout.
+ * - Perform a topic check on channel joining, rather than only names.
+ * - Write a timer class to avoid having to use popen() with /bin/sleep!
+ */
+
+var irc_version = '$Id: irclog.js,v 1.15 2007/01/03 07:21:32 mmondor Exp $';
function file_read(name)
{