Libraryless. Click here for Pure Java version (2230L/17K/51K).
!747 m { static int chatPort = 9751; p { autoReportToChatOff(); startChatServerIfNotUp(); waitForChatServer(); final Socket s = new Socket("localhost", chatPort+1); print("connected to chat"); reportToChat("Hey ho I'm sucking!"); final BufferedReader in = new BufferedReader( new InputStreamReader(s.getInputStream(), "UTF-8")); int n = 0; while (true) { S line = in.readLine(); if (line == null) break; // shouldn't happen if (line.length() == 0) break; // ok print("chat> " + line); ++n; } s.close(); print("Lines sucked: " + n); } }
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: | #1000939 |
Snippet name: | Chat sucking test |
Eternal ID of this version: | #1000939/1 |
Text MD5: | e959c5f98b1354c98c6c35d169662a15 |
Transpilation MD5: | 4b6b181c7bc26fa0343838c63a081dba |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-11 19:43:49 |
Source code size: | 678 bytes / 30 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 621 / 702 |
Referenced in: | #1000958 - Self-awareness experiment - find last programs run #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |