/* Program Code ------ | S. Cartwright Program Description | The Server acts as a network hub, and bridge | between the clients and the database. Version ----------- | 1 Creation Date ----- | 5/01 */ //***************************************************************************** //State the name of the Package these classes are a part package Server; //***************************************************************************** //Import the required utility packages import java.io.*; import java.net.*; import java.awt.*; //***************************************************************************** //Declare the ServerNetworkCore class public class ServerNetworkCore { //***************************************************************************** // Decalre the global data private MessagePacket SMP=new MessagePacket(); private int expectedClients; private String[] clientName; private int[] clientID; private int connectedClients=0; private Socket client[]; private OutputStream clientOutput[]; private InputStream clientInput[]; private ServerSocket serverSocket; private TextArea display; private int clientScan=0; public boolean _RESET=false; //***************************************************************************** // Close all the server's client connections public void closeServer() { try { //Close the server socket serverSocket.close(); //Close the client streams for(int t=0;t