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]"); } }
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: | #1001077 | 
| Snippet name: | Telnet replacement using the standard console | 
| Eternal ID of this version: | #1001077/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 00:31:12 | 
| Source code size: | 583 bytes / 31 lines | 
| Pitched / IR pitched: | No / Yes | 
| Views / Downloads: | 955 / 1072 | 
| Referenced in: | [show references] |