login_connection.cdc
./src/login_connection.cdc · 502 B
From the archive cold-turkey.tar.gz
Download the archive « Back to the archive contents
new object $login_connection: $string_connection;
var $root inited = 1;
var $login_connection interface = 0;
public method .new() {
arg @args;
interface = $login_interface;
(| interface.new_connection() |);
return (> pass(@args) <);
};
public method .parse_line() {
arg line;
var ret, i;
ret = interface.parse_line(line);
switch ((| ret[1] |)) {
case 'interface:
interface = ret[2];
(| interface.new_connection() |);
default:
(| .write(ret) |);
}
};