1 | static S tunnelToRemoteBot(S botID, S text) {
|
2 | ret tunnelToRemoteBot(format3("please forward to bot *: *", botID, text));
|
3 | } |
4 | |
5 | static S tunnelToRemoteBot(S text) {
|
6 | S signed = signWithComputerID(text); |
7 | //print(signed); |
8 | //print("OK? " + isSignedWithKey(signed, masterKey));
|
9 | |
10 | DialogIO io = talkTo("second.tinybrain.de", 4999);
|
11 | try {
|
12 | S greeting = io.readLine(); |
13 | S line = format3("signed: *", signed);
|
14 | print (">> " + line);
|
15 | io.sendLine(line); |
16 | S answer = io.readLine(); |
17 | print ("<< " + answer);
|
18 | ret answer; |
19 | } finally {
|
20 | io.close(); |
21 | } |
22 | } |
Began life as a copy of #1001589
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: | #1001593 |
| Snippet name: | tunnelToRemoteBot - send signed request to bot on ai1.lol [outdated] |
| Eternal ID of this version: | #1001593/1 |
| Text MD5: | 6e03435a724b762fc74e7999e51bb776 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-12 13:29:46 |
| Source code size: | 597 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 958 / 1080 |
| Referenced in: | [show references] |