SocketWithoutNetworkExample -- communicating across a socket using the "loopback" address.

This class manages a server socket listening on port 7834, and its partner class, ClientWithoutNetwork, runs a client for that server socket.


To see this example in action:
  1. Compile the Java source file, SocketWithoutNetworkExample.java:
    	javac SocketWithoutNetworkExample.java
    
  2. Run the server socket class in one command-line shell:
    	java SocketWithoutNetworkExample
    
  3. Run the client socket class in a different command-line shell:
    	java ClientWithoutNetwork
    
  4. Run a second client socket after the first one completes:
    	java ClientWithoutNetwork
    

The source.