Mercurial Hosting > luan
comparison core/src/luan/modules/IoLuan.java @ 281:a1fa4fba99de
change PickleCon to allow any size string
git-svn-id: https://luan-java.googlecode.com/svn/trunk@282 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 26 Nov 2014 04:14:52 +0000 |
parents | 8ac3eaf8ecd9 |
children | b669cdaf54b7 |
comparison
equal
deleted
inserted
replaced
280:2164b4479661 | 281:a1fa4fba99de |
---|---|
587 @Override public String to_string() { | 587 @Override public String to_string() { |
588 return socket.toString(); | 588 return socket.toString(); |
589 } | 589 } |
590 | 590 |
591 public LuanTable Pickle_client(LuanState luan) throws IOException { | 591 public LuanTable Pickle_client(LuanState luan) throws IOException { |
592 DataInputStream in = new DataInputStream(new BufferedInputStream(inputStream())); | 592 InputStream in = new BufferedInputStream(inputStream()); |
593 DataOutputStream out = new DataOutputStream(new BufferedOutputStream(outputStream())); | 593 OutputStream out = new BufferedOutputStream(outputStream()); |
594 return new PickleClient(luan,in,out).table(); | 594 return new PickleClient(luan,in,out).table(); |
595 } | 595 } |
596 | 596 |
597 public void run_pickle_server(LuanState luan) throws IOException { | 597 public void run_pickle_server(LuanState luan) throws IOException { |
598 DataInputStream in = new DataInputStream(new BufferedInputStream(inputStream())); | 598 InputStream in = new BufferedInputStream(inputStream()); |
599 DataOutputStream out = new DataOutputStream(new BufferedOutputStream(outputStream())); | 599 OutputStream out = new BufferedOutputStream(outputStream()); |
600 new PickleServer(luan,in,out).run(); | 600 new PickleServer(luan,in,out).run(); |
601 } | 601 } |
602 | 602 |
603 @Override LuanTable table() { | 603 @Override LuanTable table() { |
604 LuanTable tbl = super.table(); | 604 LuanTable tbl = super.table(); |