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

14
LINES

< > BotCompany Repo | #1000780 // Send "hello!" to program

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (39L/1K/2K).

!747

m {
  static int port = 1234;
  
  p {
    print("Helloing " + port);
    Socket s = new Socket("localhost", port);
    OutputStream out = s.getOutputStream();
    out.write("hello!\n".getBytes("UTF-8"));
    s.close();
    print("Done!");
  }
}

Author comment

Began life as a copy of #1000777

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: #1000780
Snippet name: Send "hello!" to program
Eternal ID of this version: #1000780/1
Text MD5: 70c1c55e86cd67dcd164a98be0b83750
Transpilation MD5: 28475b0b704ff32a8ee2cbb24e862bb3
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-27 01:43:15
Source code size: 264 bytes / 14 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 509 / 536
Referenced in: [show references]