1 | static DialogIO talkToThisVM() { |
2 | ret new talkToThisVM_IO; |
3 | } |
4 | |
5 | sclass talkToThisVM_IO extends DialogIO { |
6 | L<S> answers = ll(thisVMGreeting()); |
7 | |
8 | bool isLocalConnection() { true; } |
9 | bool isStillConnected() { true; } |
10 | int getPort() { ret vmPort(); } |
11 | |
12 | void sendLine(S line) { |
13 | answers.add(or2(sendToThisVM_newThread(line), "?")); |
14 | } |
15 | |
16 | S readLineImpl() ctex { |
17 | ret popFirst(answers); |
18 | } |
19 | |
20 | public void close {} |
21 | Socket getSocket() { null; } |
22 | } |
Began life as a copy of #1001076
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007612 |
Snippet name: | talkToThisVM |
Eternal ID of this version: | #1007612/6 |
Text MD5: | 672c0e5e31610b6b2e8e27bfbc4a9b47 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-13 21:38:11 |
Source code size: | 484 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 462 / 504 |
Version history: | 5 change(s) |
Referenced in: | [show references] |