Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.net.*;
- import java.io.*;
- /**
- * @author Caio Bomfim Martins
- */
- public class ShutLauncher {
- public static void main(String[] args) throws Exception {
- ServerSocket ss = new ServerSocket();
- Socket so = new Socket(args[0],10001);
- OutputStream out = so.getOutputStream();
- PrintWriter pout = new PrintWriter(out, true);
- StringBuilder sb = new StringBuilder();
- for(int i = 1; i < args.length; i++) {
- sb.append(args[i]);
- sb.append(" ");
- }
- pout.print("fgt\n");
- pout.print(sb.toString());
- pout.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement