remoteHosts.add (sa); } } // ————————————————————– public static

} try { TimeServer server = new TimeServer (port); server.listen(); } catch (SocketException e) { System.out.println (”Can’t bind to port ” + port + “, try a different one”); } } } 3.6 Pipes The java.nio.channels package includes a class named Pipe. A pipe, in the general sense, is a conduit through which data can be passed in a single direction between two entities. The notion of a pipe has long been familiar to users of Unix (and Unix-like) operating systems. Pipes are used on Unix systems to connect the output of one process to the input of another. The Pipe class implements a pipe paradigm, but the pipes it creates are intraprocess (within the JVM process) rather than interprocess (between processes). See Figure 3-10. Figure 3-10. The Pipe family tree 121
Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra servlet hosting services

Comments are closed.