Mercurial Hosting > luan
comparison src/goodjava/rpc/RpcServer.java @ 1492:aaac1d29edea
better io
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 02 May 2020 22:25:56 -0600 |
parents | 27efb1fcbcb5 |
children |
comparison
equal
deleted
inserted
replaced
1491:491b355acef7 | 1492:aaac1d29edea |
---|---|
21 List list = readJson(); | 21 List list = readJson(); |
22 String cmd = (String)list.remove(0); | 22 String cmd = (String)list.remove(0); |
23 Object[] args = list.toArray(); | 23 Object[] args = list.toArray(); |
24 return new RpcCall(inBinary,lenBinary,cmd,args); | 24 return new RpcCall(inBinary,lenBinary,cmd,args); |
25 } catch(RpcError e) { | 25 } catch(RpcError e) { |
26 if( !readSome && e.getCause() instanceof EOFException ) | 26 if( e.getCause() instanceof EOFException ) |
27 return null; | 27 return null; |
28 throw e; | 28 throw e; |
29 } | 29 } |
30 } | 30 } |
31 | 31 |