Libraryless. Click here for Pure Java version (141L/2K/5K).
!747 m { static S ip = "second.tinybrain.de"; static int port = 5000; p { if (args.length > 0) ip = args[0]; if (args.length > 1) port = parseInt(args[1]); final DialogIO io = talkTo(ip, port); // output thread { S line; while ((line = readLine()) != null) io.sendLine(line); } // input while (io.isStillConnected()) { if (io.waitForLine()) { S line = io.readLineNoBlock(); print("> " + line); } } print(); print("[logout]"); } }
Began life as a copy of #1001077
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001085 |
Snippet name: | Swing: Talk to the android |
Eternal ID of this version: | #1001085/1 |
Text MD5: | c7a38f786e15e39da23019b291fc5bf5 |
Transpilation MD5: | efc8cfa4e41a6d1c0607c43ae392139b |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-20 05:10:49 |
Source code size: | 583 bytes / 31 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 699 / 1095 |
Referenced in: | [show references] |