public void run() {
	     while(live){
	         try   {
	        	 
	        	 System.out.println("current thread"+Thread.currentThread()+"active>>"+Thread.activeCount());
		         System.out.println("Waiting for Command ...");
		         //String[] command = input.split(" ");
		        // BufferedReader br=new BufferedReader(new InputStreamReader(din));
		         String Commands=din.readUTF();
		         String[] command = Commands.split(" " );
		         System.out.println(command[0]);
		         if(command[0].equals("get"))  {
		             System.out.println("\tget Command Received ...");
		             SendFile(command[1]);
		             continue;
		         }
		         else if(command[0].equals("post")) {
		             System.out.println("\tpost Command Receiced ...");                
		             ReceiveFile(command[1]);
		             continue;
		         }
		         else if(command[0].equals("quit")) {
		             System.out.println("quit Command Received ...");
		             clientSocket.close();
		             
		             //live = false;
		            
		         }
		         else
		        	 System.out.println("invalid command");
	         }
	         catch(SocketException e){
	        	 try {
					clientSocket.close();
					din.close();
					live = false;
				} catch (IOException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
	        	 
	         }
	         catch(Exception e) {
	        	 e.printStackTrace();
	         }
	     }
	    }