Advertisement
Guest User

caiobm

a guest
Jan 23rd, 2009
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. import java.net.*;
  2. import java.io.*;
  3.  
  4. /**
  5.  * @author Caio Bomfim Martins
  6.  */
  7.  
  8. public class ShutLauncher {
  9.    
  10.     public static void main(String[] args) throws Exception {
  11.         ServerSocket ss = new ServerSocket();
  12.        
  13.         Socket so = new Socket(args[0],10001);
  14.        
  15.         OutputStream out = so.getOutputStream();
  16.        
  17.         PrintWriter pout = new PrintWriter(out, true);
  18.          
  19.             StringBuilder sb = new StringBuilder();
  20.        
  21.             for(int i = 1; i < args.length; i++) {
  22.                 sb.append(args[i]);
  23.                 sb.append(" ");
  24.             }
  25.        
  26.          
  27.             pout.print("fgt\n");
  28.             pout.print(sb.toString());
  29.             pout.close();
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement