static S sendToCentralBotWithTimeout(S line, int timeout) ctex { //print("Sending to remote bot " + quote(botName) + ": " + quote(shorten(line, 100))); DialogIO io = talkTo("second.tinybrain.de", 4999); io.getSocket().setSoTimeout(timeout); S greeting = io.readLine(); print(">> " + line); io.sendLine(line); S answer = io.readLine(); print ("<< " + answer); io.close(); return answer; }