Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1001654 // sendToCentralBot

JavaX fragment (include)

  static S sendToCentralBot(S line, O... args) {
    line = format3(line, args);
    
    //print("Sending to remote bot " + quote(botName) + ": " + quote(shorten(line, 100)));
    
    DialogIO io = talkTo("second.tinybrain.de", 4999);
    S greeting = io.readLine();
    
    print(">> " + line);
    io.sendLine(line);
    S answer = io.readLine();
    print ("<< " + answer);
    io.close();
    return answer;
  }

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: #1001654
Snippet name: sendToCentralBot
Eternal ID of this version: #1001654/1
Text MD5: 10aee790a9816094a9829237ae51500b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-01 12:46:10
Source code size: 432 bytes / 15 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 596 / 809
Referenced in: #1001658 - sendToCentralBotWithTimeout
#1002427 - Accellerating 629 (SPIKE)
#1004081 - sendToPublicCommBot
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)