Mercurial Hosting > luan
comparison core/src/luan/modules/IoLuan.java @ 744:4b8695f1cfc4
add rpc IO type
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 13 Jul 2016 20:39:08 -0600 |
parents | 2c41f2aec92f |
children | 9c1f28b26395 |
comparison
equal
deleted
inserted
replaced
743:2c41f2aec92f | 744:4b8695f1cfc4 |
---|---|
614 throw new LuanException( "invalid scheme '"+scheme+"' in '"+name+"'" ); | 614 throw new LuanException( "invalid scheme '"+scheme+"' in '"+name+"'" ); |
615 return (LuanTable)Luan.first(opener.call(luan,new Object[]{location,options})); | 615 return (LuanTable)Luan.first(opener.call(luan,new Object[]{location,options})); |
616 } | 616 } |
617 | 617 |
618 public static final class LuanSocket extends LuanIO { | 618 public static final class LuanSocket extends LuanIO { |
619 private final Socket socket; | 619 public final Socket socket; |
620 | 620 |
621 private LuanSocket(String host,int port) throws LuanException { | 621 private LuanSocket(String host,int port) throws LuanException { |
622 try { | 622 try { |
623 this.socket = new Socket(host,port); | 623 this.socket = new Socket(host,port); |
624 } catch(IOException e) { | 624 } catch(IOException e) { |