Specifications
Sun Services
Java™ Programming Language
Module 15, slide 10 of 12
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Minimal TCP/IP Server
28
29 // Close the connection, but not the server socket
30 bw.close();
31 s1.close();
32
33 } catch (IOException e) {
34 e.printStackTrace();
35 } // END of try-catch
36
37 } // END of while(true)
38
39 } // END of main method
40
41 } // END of SimpleServer program










