-/* $Id: main.js,v 1.1 2006/08/20 06:58:57 mmondor Exp $ */
+/* $Id: main.js,v 1.2 2006/10/28 08:34:21 mmondor Exp $ */
/*
* Copyright (C) 2006, Matthew Mondor
-/* Set err globally */
-err = new FD();
-err.set(FD.STDERR_FILENO);
-
-
-
function file_read(file)
{
var contents = '';
contents += data;
}
} catch (x) {
- err.put(x + "\n");
+ stderr.write(x + "\n");
} finally {
fd.close();
}
/* Set pgc globally */
pgc = PG.connectDb(database);
} catch (x) {
- err.put(x + "\n");
+ stderr.write(x + "\n");
}
sid_init();
}
fd = new FD();
fd.binit(r.client_socket, hello_timeout, hello_timeout);
} catch (x) {
- err.put(x + "\n");
+ stderr.write(x + "\n");
}
try {
o = {result: false, msg: "Rejected", reason: reason};
fd.put(o.toSource() + "\r\n");
} catch (x) {
- err.put(x + "\n");
+ stderr.write(x + "\n");
}
}
fd = new FD();
fd.binit(r.client_socket, hello_timeout, hello_timeout);
} catch (x) {
- err.put(x + "\n");
+ stderr.write(x + "\n");
}
o = {result: true, msg: "Ready"};