PacketType getPacketTypeFromChar(char c){
	 switch(c){
	 case 'L':
	    return PacketType.LOGIN;
	 case 'X':
	    return PacketType.LOG_OUT;
	 case 'R':
	    return PacketType.LOGIN_RESPONSE;
	 case 'D':
	    return PacketType.DATA_PAYLOAD;
	 case 'Y':
	    return PacketType.ACKNOWLEDGE;
	 case 'N':
	    return PacketType.NON_ACKNOWLEDGE;
	  
	 case '0':
	 default:
	    return PacketType.NULL;
	  
	 }
      }