Notice in this example, I closed the Socket s, not the
ServerSocket ss. ss is still bound to
port 2345. You get a new socket for each connection but it's easy
to reuse the server socket. For example, the next code fragment
repeatedly accepts connections: