comparison src/goodjava/rpc/Rpc.java @ 1959:a8bab2b60b67

swing threading
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 04 Jun 2025 18:20:40 -0600
parents 0ba144491a42
children
comparison
equal deleted inserted replaced
1958:156d7e77edf6 1959:a8bab2b60b67
10 public static final RpcResult OK = new RpcResult(new Object[0]); 10 public static final RpcResult OK = new RpcResult(new Object[0]);
11 11
12 public static final RpcCall CLOSE = new RpcCall("close"); 12 public static final RpcCall CLOSE = new RpcCall("close");
13 public static final RpcCall PING = new RpcCall("ping"); 13 public static final RpcCall PING = new RpcCall("ping");
14 public static final String ECHO = "echo"; 14 public static final String ECHO = "echo";
15
16 public static final RpcException COMMAND_NOT_FOUND = new RpcException("command_not_found");
17 15
18 public static boolean handle(RpcServer server,RpcCall call) 16 public static boolean handle(RpcServer server,RpcCall call)
19 throws IOException 17 throws IOException
20 { 18 {
21 if( CLOSE.cmd.equals(call.cmd) ) { 19 if( CLOSE.cmd.equals(call.cmd) ) {