Thanks Réal Gagnon :)


import java.io.*;

import java.net.*;

 

public class ReachableTest {

 public static void main(String args[]) {

     try {

       InetAddress address = InetAddress.getByName("web.mit.edu");

       System.out.println("Name: " + address.getHostName());

       System.out.println("Addr: " + address.getHostAddress());

       System.out.println("Reach: " + address.isReachable(3000));

     }

     catch (UnknownHostException e) {

       System.err.println("Unable to lookup web.mit.edu");

     }

     catch (IOException e) {

       System.err.println("Unable to reach web.mit.edu");

     }

   }

}

Umm…. OK?

That’s when you want to stream multiple files continuously. By default, the stream will stop after one file.

Just add this to the end of the command : sout-keep


:sout=#duplicate{dst=std{access=http,mux=ts,dst=192.168.15.7:1234}} :sout-keep