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: | 713 / 784 |
Referenced in: | #1001085 - Swing: Talk to the android #1001147 - telnetFromConsoleTo #1006483 - Swing Telnet #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |