public static void main(String[] args) throws IOException, InterruptedException {

    	int portNumber = 7777;//Integer.parseInt(args[0]);
    	
    	ServerSocket serverSocket= new ServerSocket(portNumber);
    	try {
    		while (true){
    			//System.out.println(available.getQueueLength());
    			
    			
    			Socket clientSocket = serverSocket.accept();
            	new ServerWorkerThread(clientSocket).start();
            	
    		}
        } catch (IOException e) {
        	e.printStackTrace();
        }            
	
	}