public void run() {
		while(true) 
		{			
			try {
				String recv_commands="";

				System.out.println("Listening on client-server port " +server_Socket.getLocalPort() + "...");

				//menerima koneksi yang dibuat ke server_Socket
				Socket server = server_Socket.accept();
				P = new Protocol(server);
				System.out.println("Connected with "+ server.getRemoteSocketAddress());
				
				//dilakukan hingga perintah "quit" dimasukkan
				while (!recv_commands.equals("quit")) {
					recv_commands = P.receive();
					if (recv_commands.equals("quit")){
						P.send("Server quits");
					}
					else{
						P.send(operateDatabase(recv_commands,P));
					}
					System.out.println("Isi recv_commands : "+recv_commands);
	
					if (recv_commands.equals("NULL")){
						break;
					}
				}	

				//menutup Socket
				server.close();
				System.out.println("Disconnected with "+ server.getRemoteSocketAddress());

			}
			catch (SocketTimeoutException s) {
				System.out.println("Socket timed out!");
				break;
			}catch (IOException e) {
				e.printStackTrace();
				break;
			} catch (Exception e) {
				System.out.println("Exception");
				e.printStackTrace();
			}
		}
	}