tuned signature;
authorwenzelm
Wed, 14 Mar 2018 19:58:27 +0100
changeset 67859 612846bff1ea
parent 67858 cba5c5657378
child 67860 5a6c483269f3
tuned signature;
src/Pure/Tools/server.scala
--- a/src/Pure/Tools/server.scala	Wed Mar 14 17:43:30 2018 +0100
+++ b/src/Pure/Tools/server.scala	Wed Mar 14 19:58:27 2018 +0100
@@ -152,18 +152,18 @@
       try { out.flush() } catch { case _: SocketException => }
     }
 
-    def reply(r: Server.Reply.Value, arg: Any)
+    def reply(r: Reply.Value, arg: Any)
     {
       val argument = Argument.print(arg)
       write_message(if (argument == "") r.toString else r.toString + " " + argument)
     }
 
-    def reply_ok(arg: Any) { reply(Server.Reply.OK, arg) }
-    def reply_error(arg: Any) { reply(Server.Reply.ERROR, arg) }
+    def reply_ok(arg: Any) { reply(Reply.OK, arg) }
+    def reply_error(arg: Any) { reply(Reply.ERROR, arg) }
     def reply_error_message(message: String, more: JSON.Object.Entry*): Unit =
       reply_error(JSON.Object(Reply.message(message)) ++ more)
 
-    def notify(arg: Any) { reply(Server.Reply.NOTE, arg) }
+    def notify(arg: Any) { reply(Reply.NOTE, arg) }
   }
 
 
@@ -175,6 +175,7 @@
 
     def shutdown() { server.close() }
 
+    def reply(r: Reply.Value, arg: Any) { connection.reply(r, arg) }
     def notify(arg: Any) { connection.notify(arg) }
     def message(kind: String, msg: String, more: JSON.Object.Entry*): Unit =
       notify(JSON.Object(Markup.KIND -> kind, Reply.message(msg)) ++ more)