Skip to content

Instantly share code, notes, and snippets.

Created March 28, 2016 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/435f29fa27dde3393acb to your computer and use it in GitHub Desktop.
Save anonymous/435f29fa27dde3393acb to your computer and use it in GitHub Desktop.
try{
ServerSocket server = new ServerSocket(6013);
Socket socket = server.accept();
PrintWriter writter = new PrintWriter(socket.getOutputStream(), true);
try{
if(args==null) return;
for(int i = 0; i < args.length; i++){ writter.println(args[i]); }
}finally{
socket.close();
server.close();
writter.close();
}
}catch(Exception e){
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment