Transpiled version (3117L) is out of date.
1 | static DialogIO talkToSubBot(final long vport, final DialogIO io) { |
2 | ret talkToSubBot(String.valueOf(vport), io); |
3 | } |
4 | |
5 | static DialogIO talkToSubBot(final S subBot, final DialogIO io) { |
6 | if (subBot == null) ret io; |
7 | ret new talkToSubBot_IO(subBot, io); |
8 | } |
9 | |
10 | sclass talkToSubBot_IO extends DialogIO { |
11 | S subBot; |
12 | DialogIO io; |
13 | |
14 | *(S *subBot, DialogIO *io) {} |
15 | |
16 | // delegate all but sendLine |
17 | boolean isStillConnected() { ret io.isStillConnected(); } |
18 | String readLineImpl() { ret io.readLineImpl(); } |
19 | boolean isLocalConnection() { ret io.isLocalConnection(); } |
20 | Socket getSocket() { ret io.getSocket(); } |
21 | public void close() ctex { io.close(); } |
22 | |
23 | void sendLine(String line) { |
24 | io.sendLine(format3("please forward to bot *: *", subBot, line)); |
25 | } |
26 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001678 |
Snippet name: | talkToSubBot |
Eternal ID of this version: | #1001678/4 |
Text MD5: | bc08ca97e6597fdc2cdd90ed47b942a6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-13 22:38:19 |
Source code size: | 787 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 636 / 2591 |
Version history: | 3 change(s) |
Referenced in: | [show references] |