@Override
	public void run() {
		Client client = new Client(socket);

		try {
			InputStream in = socket.getInputStream();
			byte type = (byte) in.read();

			if (type == 0x00) {
				while (true) {
					byte[] buffer	= Protocol.decode(in);
					System.err.println(new String(buffer));
					String decoded;
					
					if(Server.get().getHuffman()) {
						decoded	= Huffman.getDecoder().decode(buffer);
					} else {
						decoded = new String(buffer);
					}
					read(client, decoded);
				}
			} else if (type == 0x02) {
				// registration
			}
		} catch (IOException e) {
			/* Do Nothing */
		} finally {
			client.disconnect();
		}
	}