RLGWeb: switch to JSON protocol.
Port the JSON communication from WebTTY to RLGWeb. Fixing out-of-order messages is still not implemented on the server side. Terminal size is still hard-coded. Unused code is still lying around.
This commit is contained in:
parent
db55f3f83c
commit
94f8630eb4
2 changed files with 162 additions and 75 deletions
128
rlgterm.js
128
rlgterm.js
|
|
@ -111,33 +111,67 @@ function writeData(hexstr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* State for sending and receiving messages. */
|
||||||
|
var nsend = 0; // The number of the next packet to send.
|
||||||
|
var nrecv = 0; // The next packet expected.
|
||||||
|
var msgQ = []; // Queue for out-of-order messages.
|
||||||
|
|
||||||
/* Processes a message from the server, returning true or false if it was a
|
/* Processes a message from the server, returning true or false if it was a
|
||||||
* data message with or without data, null if not data. */
|
* data message with or without data, null if not data.
|
||||||
|
* All non-special responseTexts should be handed directly to this function.
|
||||||
|
*/
|
||||||
function processMsg(msg) {
|
function processMsg(msg) {
|
||||||
var msglines = msg.split("\n");
|
var msgDict;
|
||||||
var havedata = null;
|
var havedata = null; // eventual return value
|
||||||
if (!msglines[0])
|
try {
|
||||||
|
msgDict = JSON.parse(msg);
|
||||||
|
} catch (e) {
|
||||||
|
if (e instanceof SyntaxError)
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (!msgDict.t)
|
||||||
return null;
|
return null;
|
||||||
if (msglines[0].charAt(0) == 'd') {
|
else if (msgDict.t == "E") {
|
||||||
if (msglines[1]){
|
if (msgDict.c == 1) {
|
||||||
writeData(msglines[1]);
|
logout();
|
||||||
havedata = true;
|
}
|
||||||
|
debug(1, "Server error: " + msgDict.s);
|
||||||
|
}
|
||||||
|
else if (msgDict.t == "n") {
|
||||||
|
havedata = false;
|
||||||
|
}
|
||||||
|
// A data message
|
||||||
|
else if (msgDict.t == "d"){
|
||||||
|
if (msgDict.n === nrecv) {
|
||||||
|
writeData(msgDict.d);
|
||||||
|
nrecv++;
|
||||||
|
/* Process anything in the queue that's now ready. */
|
||||||
|
var next;
|
||||||
|
while ((next = msgQ.shift()) !== undefined) {
|
||||||
|
writeData(next.d);
|
||||||
|
nrecv++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (response.n > nrecv) {
|
||||||
|
/* The current message comes after one still missing. Queue this one
|
||||||
|
* for later use. */
|
||||||
|
debug(1, "Got packet " + msgDict.n + ", expected " + nrecv);
|
||||||
|
msgQ[msgDict.n - nrecv - 1] = msgDict;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
havedata = false;
|
/* This message's number was encountered previously. */
|
||||||
|
debug(1, "Discarding packet " + msgDict.n + ", expected " + nrecv);
|
||||||
}
|
}
|
||||||
|
havedata = true;
|
||||||
}
|
}
|
||||||
else if (msglines[0] == "E1") {
|
else if (msgDict.t == "T") {
|
||||||
logout();
|
setTitle(msgDict.d);
|
||||||
}
|
}
|
||||||
else if (msglines[0].charAt(0) == "T") {
|
else if (msgDict.t == "q") {
|
||||||
setTitle(msglines[1]);
|
|
||||||
}
|
|
||||||
else if (msglines[0] == "q1") {
|
|
||||||
logout();
|
logout();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
debug(1, "Unrecognized server message " + msglines[0]);
|
debug(1, "Unrecognized server message " + msg);
|
||||||
}
|
}
|
||||||
return havedata;
|
return havedata;
|
||||||
}
|
}
|
||||||
|
|
@ -146,6 +180,7 @@ function getData() {
|
||||||
if (termemu.sessid == null)
|
if (termemu.sessid == null)
|
||||||
return;
|
return;
|
||||||
var datareq = new XMLHttpRequest();
|
var datareq = new XMLHttpRequest();
|
||||||
|
var msg = JSON.stringify({"id": termemu.sessid, "t": "n"});
|
||||||
datareq.onreadystatechange = function () {
|
datareq.onreadystatechange = function () {
|
||||||
if (datareq.readyState == 4 && datareq.status == 200) {
|
if (datareq.readyState == 4 && datareq.status == 200) {
|
||||||
var wasdata = processMsg(datareq.responseText);
|
var wasdata = processMsg(datareq.responseText);
|
||||||
|
|
@ -159,7 +194,7 @@ function getData() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
datareq.open('POST', '/feed', true);
|
datareq.open('POST', '/feed', true);
|
||||||
datareq.send("id=" + termemu.sessid);
|
datareq.send(msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -174,10 +209,11 @@ function postResponseHandler() {
|
||||||
|
|
||||||
function sendback(str) {
|
function sendback(str) {
|
||||||
/* For responding to terminal queries. */
|
/* For responding to terminal queries. */
|
||||||
|
var msgDict = {"id": termemu.sessid, "t": "d", "n": nsend++, "d": str};
|
||||||
var datareq = new XMLHttpRequest();
|
var datareq = new XMLHttpRequest();
|
||||||
datareq.onreadystatechange = postResponseHandler;
|
datareq.onreadystatechange = postResponseHandler;
|
||||||
datareq.open('POST', '/feed', true);
|
datareq.open('POST', '/feed', true);
|
||||||
datareq.send("id=" + termemu.sessid + "&keys=" + str);
|
datareq.send(JSON.stringify(msgDict));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -219,12 +255,14 @@ function sendkey(ev) {
|
||||||
debug(1, "Ignoring keycode " + keynum);
|
debug(1, "Ignoring keycode " + keynum);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Isn't this check redundant?
|
||||||
if (termemu.sessid != null)
|
if (termemu.sessid != null)
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
var datareq = new XMLHttpRequest();
|
var datareq = new XMLHttpRequest();
|
||||||
|
var msgDict = {"id": termemu.sessid, "t": "d", "n": nsend++, "d": code};
|
||||||
datareq.onreadystatechange = postResponseHandler;
|
datareq.onreadystatechange = postResponseHandler;
|
||||||
datareq.open('POST', '/feed', true);
|
datareq.open('POST', '/feed', true);
|
||||||
datareq.send("id=" + termemu.sessid + "&keys=" + code);
|
datareq.send(JSON.stringify(msgDict));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -270,11 +308,11 @@ function vkey(c) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
//writeData("Sending " + keystr);
|
|
||||||
var datareq = new XMLHttpRequest();
|
var datareq = new XMLHttpRequest();
|
||||||
|
var msgDict = {"id": termemu.sessid, "t": "d", "n": nsend++, "d": keystr};
|
||||||
datareq.onreadystatechange = postResponseHandler;
|
datareq.onreadystatechange = postResponseHandler;
|
||||||
datareq.open('POST', '/feed', true);
|
datareq.open('POST', '/feed', true);
|
||||||
datareq.send("id=" + termemu.sessid + "&keys=" + keystr);
|
datareq.send(JSON.stringify(msgDict));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -309,31 +347,34 @@ function formlogin(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
if (termemu.sessid != null)
|
if (termemu.sessid != null)
|
||||||
return;
|
return;
|
||||||
var formname = document.getElementById("input_name").value;
|
var loginmsg = {};
|
||||||
var formpass = document.getElementById("input_pw").value;
|
loginmsg["name"] = document.getElementById("input_name").value;
|
||||||
var formgame = document.getElementById("input_game").value;
|
loginmsg["pw"] = document.getElementById("input_pw").value;
|
||||||
var formdata = "game=" + encodeURIComponent(formgame) + "&name=" + encodeURIComponent(formname) + "&pw=" + encodeURIComponent(formpass);
|
loginmsg["game"] = document.getElementById("input_game").value;
|
||||||
|
loginmsg["h"] = 24;
|
||||||
|
loginmsg["w"] = 80;
|
||||||
var req = new XMLHttpRequest();
|
var req = new XMLHttpRequest();
|
||||||
req.onreadystatechange = function () {
|
req.onreadystatechange = function () {
|
||||||
if (req.readyState == 4 && req.status == 200) {
|
if (req.readyState != 4 || req.status != 200)
|
||||||
var datalines = req.responseText.split("\n");
|
return;
|
||||||
if (datalines[0] == 'l1') {
|
var reply = JSON.parse(req.responseText);
|
||||||
/* Success */
|
if (reply.t == 'l') {
|
||||||
termemu.sessid = datalines[1];
|
/* Success */
|
||||||
setTitle("Playing as " + formname);
|
termemu.sessid = reply.id;
|
||||||
debug(1, "Logged in with id " + termemu.sessid);
|
termemu.resize(reply.h, reply.w);
|
||||||
document.getElementById("loginform").style.display = "none";
|
setTitle("Playing as " + loginmsg["name"]);
|
||||||
getData();
|
debug(1, "Logged in with id " + termemu.sessid);
|
||||||
}
|
document.getElementById("loginform").style.display = "none";
|
||||||
else {
|
getData();
|
||||||
debug(1, "Could not start game: " + datalines[1]);
|
}
|
||||||
document.getElementById("input_name").value = "";
|
else if (reply.t == 'E') {
|
||||||
document.getElementById("input_pw").value = "";
|
debug(1, "Could not start game: " + reply.s);
|
||||||
}
|
document.getElementById("input_name").value = "";
|
||||||
|
document.getElementById("input_pw").value = "";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
req.open('POST', '/login', true);
|
req.open('POST', '/login', true);
|
||||||
req.send(formdata);
|
req.send(JSON.stringify(loginmsg));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -342,6 +383,9 @@ function logout() {
|
||||||
return;
|
return;
|
||||||
termemu.sessid = null;
|
termemu.sessid = null;
|
||||||
setTitle("Game over.");
|
setTitle("Game over.");
|
||||||
|
nsend = 0;
|
||||||
|
nrecv = 0;
|
||||||
|
msgQ = [];
|
||||||
document.getElementById("loginform").style.display = "block";
|
document.getElementById("loginform").style.display = "block";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -355,7 +399,7 @@ function stop() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
req.open('POST', '/feed', true);
|
req.open('POST', '/feed', true);
|
||||||
req.send("id=" + termemu.sessid + "&quit=quit");
|
req.send(JSON.stringify({"id": termemu.sessid, "t": "q"}));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
109
rlgwebd.js
109
rlgwebd.js
|
|
@ -43,7 +43,7 @@ var games = {
|
||||||
* adds itself to the sessions dict. It currently assumes the user has
|
* adds itself to the sessions dict. It currently assumes the user has
|
||||||
* been authenticated.
|
* been authenticated.
|
||||||
*/
|
*/
|
||||||
function TermSession(game, user, files) {
|
function TermSession(game, user, files, dims) {
|
||||||
/* First make sure starting the game will work. */
|
/* First make sure starting the game will work. */
|
||||||
if (!(game in games)) {
|
if (!(game in games)) {
|
||||||
// TODO: throw an exception instead
|
// TODO: throw an exception instead
|
||||||
|
|
@ -57,15 +57,33 @@ function TermSession(game, user, files) {
|
||||||
}
|
}
|
||||||
/* Grab a spot in the sessions table. */
|
/* Grab a spot in the sessions table. */
|
||||||
sessions[this.sessid] = this;
|
sessions[this.sessid] = this;
|
||||||
|
/* State for messaging. */
|
||||||
|
this.nsend = 0;
|
||||||
|
this.nrecv = 0;
|
||||||
|
this.msgQ = []
|
||||||
|
/* Set up the sizes. */
|
||||||
|
this.w = Math.floor(Number(dims[1]));
|
||||||
|
if (!(this.w > 0 && this.w < 256))
|
||||||
|
this.w = 80;
|
||||||
|
this.h = Math.floor(Number(dims[0]));
|
||||||
|
if (!(this.h > 0 && this.h < 256))
|
||||||
|
this.h = 24;
|
||||||
|
/* Environment. */
|
||||||
|
var childenv = {};
|
||||||
|
for (var key in process.env) {
|
||||||
|
childenv[key] = process.env[key];
|
||||||
|
}
|
||||||
|
childenv["PTYHELPER"] = String(this.h) + "x" + String(this.w);
|
||||||
/* TODO handle tty-opening errors */
|
/* TODO handle tty-opening errors */
|
||||||
/* TODO make argument-finding into a method */
|
/* TODO make argument-finding into a method */
|
||||||
args = [games[game].path, "-n", user.toString()];
|
args = [games[game].path, "-n", user.toString()];
|
||||||
this.child = child_process.spawn("/bin/ptyhelper", args);
|
this.child = child_process.spawn("/bin/ptyhelper", args, {"env": childenv});
|
||||||
var ss = this;
|
var ss = this;
|
||||||
this.alive = true;
|
this.alive = true;
|
||||||
this.data = [];
|
this.data = [];
|
||||||
this.lock = files[0];
|
this.lock = files[0];
|
||||||
fs.writeFile(this.lock, this.child.pid.toString() + '\n80\n24\n', "utf8");
|
fs.writeFile(this.lock, this.child.pid.toString() + '\n' + this.w + '\n' +
|
||||||
|
this.h + '\n', "utf8");
|
||||||
this.record = fs.createWriteStream(files[1], { mode: 0664 });
|
this.record = fs.createWriteStream(files[1], { mode: 0664 });
|
||||||
/* END setup */
|
/* END setup */
|
||||||
function ttyrec_chunk(buf) {
|
function ttyrec_chunk(buf) {
|
||||||
|
|
@ -206,6 +224,22 @@ function getFormValues(formtext) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getMsg(posttext) {
|
||||||
|
var jsonobj;
|
||||||
|
if (!posttext)
|
||||||
|
return {};
|
||||||
|
try {
|
||||||
|
jsonobj = JSON.parse(posttext);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
if (e instanceof SyntaxError)
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
if (typeof(jsonobj) != "object")
|
||||||
|
return {};
|
||||||
|
return jsonobj;
|
||||||
|
}
|
||||||
|
|
||||||
function auth(username, password) {
|
function auth(username, password) {
|
||||||
// Real authentication not implemented
|
// Real authentication not implemented
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -224,9 +258,10 @@ function login(req, res, formdata) {
|
||||||
sendError(res, 2, "Password not given.");
|
sendError(res, 2, "Password not given.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var username = formdata["name"][0];
|
var username = formdata["name"];
|
||||||
var password = formdata["pw"][0];
|
var password = formdata["pw"];
|
||||||
var gname = formdata["game"][0];
|
var gname = formdata["game"];
|
||||||
|
var dims = [formdata["h"], formdata["w"]];
|
||||||
if (!(gname in games)) {
|
if (!(gname in games)) {
|
||||||
sendError(res, 2, "No such game: " + gname);
|
sendError(res, 2, "No such game: " + gname);
|
||||||
console.log("Request for nonexistant game \"" + gname + "\"");
|
console.log("Request for nonexistant game \"" + gname + "\"");
|
||||||
|
|
@ -239,13 +274,15 @@ function login(req, res, formdata) {
|
||||||
var ts = timestamp();
|
var ts = timestamp();
|
||||||
var lockfile = path.join(progressdir, username + ":node:" + ts + ".ttyrec");
|
var lockfile = path.join(progressdir, username + ":node:" + ts + ".ttyrec");
|
||||||
var ttyrec = path.join("/dgldir/ttyrec", username, gname, ts + ".ttyrec");
|
var ttyrec = path.join("/dgldir/ttyrec", username, gname, ts + ".ttyrec");
|
||||||
var nsession = new TermSession(gname, username, [lockfile, ttyrec]);
|
var nsession = new TermSession(gname, username, [lockfile, ttyrec], dims);
|
||||||
if (nsession) {
|
if (nsession) {
|
||||||
/* Technically there's a race condition for the "lock"file, but since
|
/* Technically there's a race condition for the "lock"file, but since
|
||||||
* it requires the user deliberately starting two games at similar times,
|
* it requires the user deliberately starting two games at similar times,
|
||||||
* it's not too serious. We can't get O_EXCL in Node anyway. */
|
* it's not too serious. We can't get O_EXCL in Node anyway. */
|
||||||
res.writeHead(200, {'Content-Type': 'text/plain'});
|
res.writeHead(200, {'Content-Type': 'text/plain'});
|
||||||
res.write("l1\n" + nsession.sessid + "\n");
|
var reply = {"t": "l", "id": nsession.sessid, "w": nsession.w, "h":
|
||||||
|
nsession.h};
|
||||||
|
res.write(JSON.stringify(reply));
|
||||||
res.end();
|
res.end();
|
||||||
console.log("%s playing %s (key %s, pid %d)", username, gname,
|
console.log("%s playing %s (key %s, pid %d)", username, gname,
|
||||||
nsession.sessid, nsession.child.pid);
|
nsession.sessid, nsession.child.pid);
|
||||||
|
|
@ -309,14 +346,16 @@ function logout(term, res) {
|
||||||
cterm.close();
|
cterm.close();
|
||||||
var resheaders = {'Content-Type': 'text/plain'};
|
var resheaders = {'Content-Type': 'text/plain'};
|
||||||
res.writeHead(200, resheaders);
|
res.writeHead(200, resheaders);
|
||||||
res.write("q1\n\n");
|
res.write(JSON.stringify({"t": "q"}));
|
||||||
res.end();
|
res.end();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function findTermSession(formdata) {
|
function findTermSession(formdata) {
|
||||||
|
if (typeof(formdata) != "object")
|
||||||
|
return null;
|
||||||
if ("id" in formdata) {
|
if ("id" in formdata) {
|
||||||
var sessid = formdata["id"][0];
|
var sessid = formdata["id"];
|
||||||
if (sessid in sessions) {
|
if (sessid in sessions) {
|
||||||
return sessions[sessid];
|
return sessions[sessid];
|
||||||
}
|
}
|
||||||
|
|
@ -370,22 +409,24 @@ function serveStatic(req, res, fname) {
|
||||||
|
|
||||||
function readFeed(res, term) {
|
function readFeed(res, term) {
|
||||||
if (term) {
|
if (term) {
|
||||||
|
var reply = {};
|
||||||
var result = term.read();
|
var result = term.read();
|
||||||
res.writeHead(200, { "Content-Type": "text/plain" });
|
if (result == null) {
|
||||||
if (result == null)
|
if (term.alive)
|
||||||
resultstr = "";
|
reply.t = "n";
|
||||||
else
|
else
|
||||||
resultstr = result.toString("hex");
|
reply.t = "q";
|
||||||
if (result == null && !term.alive) {
|
|
||||||
/* Child has terminated and data is flushed. */
|
|
||||||
res.write("q1\n\n");
|
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
res.write("d" + resultstr.length.toString() + "\n" + resultstr + "\n");
|
reply.t = "d";
|
||||||
|
reply.n = term.nsend++;
|
||||||
|
reply.d = result.toString("hex");
|
||||||
|
}
|
||||||
|
res.writeHead(200, { "Content-Type": "text/plain" });
|
||||||
|
res.write(JSON.stringify(reply));
|
||||||
res.end();
|
res.end();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//console.log("Where's the term?");
|
|
||||||
sendError(res, 1, null);
|
sendError(res, 1, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -395,14 +436,14 @@ var errorcodes = [ "Generic Error", "Not logged in", "Invalid data",
|
||||||
|
|
||||||
function sendError(res, ecode, msg) {
|
function sendError(res, ecode, msg) {
|
||||||
res.writeHead(200, { "Content-Type": "text/plain" });
|
res.writeHead(200, { "Content-Type": "text/plain" });
|
||||||
if (ecode < errorcodes.length && ecode > 0) {
|
var edict = {"t": "E"};
|
||||||
var emsg = errorcodes[ecode];
|
if (!(ecode < errorcodes.length && ecode > 0))
|
||||||
if (msg)
|
ecode = 0;
|
||||||
emsg += ": " + msg;
|
edict["c"] = ecode;
|
||||||
res.write("E" + ecode + '\n' + emsg + '\n');
|
edict["s"] = errorcodes[ecode];
|
||||||
}
|
if (msg)
|
||||||
else
|
edict["s"] += ": " + msg;
|
||||||
res.write("E0\nGeneric Error\n");
|
res.write(JSON.stringify(edict));
|
||||||
res.end();
|
res.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -421,7 +462,8 @@ function handler(req, res) {
|
||||||
|
|
||||||
/* This will send the response once the whole request is here. */
|
/* This will send the response once the whole request is here. */
|
||||||
function respond() {
|
function respond() {
|
||||||
formdata = getFormValues(reqbody);
|
//formdata = getFormValues(reqbody);
|
||||||
|
formdata = getMsg(reqbody);
|
||||||
var target = url.parse(req.url).pathname;
|
var target = url.parse(req.url).pathname;
|
||||||
var cterm = findTermSession(formdata);
|
var cterm = findTermSession(formdata);
|
||||||
/* First figure out if the client is POSTing to a command interface. */
|
/* First figure out if the client is POSTing to a command interface. */
|
||||||
|
|
@ -431,18 +473,19 @@ function handler(req, res) {
|
||||||
sendError(res, 1, null);
|
sendError(res, 1, null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ("quit" in formdata) {
|
if (formdata.t == "q") {
|
||||||
/* The client wants to terminate the process. */
|
/* The client wants to terminate the process. */
|
||||||
logout(cterm, res);
|
logout(cterm, res);
|
||||||
}
|
}
|
||||||
else if (formdata["keys"]) {
|
else if (formdata.t == "d" && typeof(formdata.d) == "string") {
|
||||||
/* process the keys */
|
/* process the keys */
|
||||||
hexstr = formdata["keys"][0].replace(/[^0-9a-f]/gi, "");
|
hexstr = formdata.d.replace(/[^0-9a-f]/gi, "");
|
||||||
if (hexstr.length % 2 != 0) {
|
if (hexstr.length % 2 != 0) {
|
||||||
sendError(res, 2, "incomplete byte");
|
sendError(res, 2, "incomplete byte");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
keybuf = new Buffer(hexstr, "hex");
|
keybuf = new Buffer(hexstr, "hex");
|
||||||
|
/* TODO OoO correction */
|
||||||
cterm.write(keybuf);
|
cterm.write(keybuf);
|
||||||
}
|
}
|
||||||
readFeed(res, cterm);
|
readFeed(res, cterm);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue