public void setName(String nom)
		{
			if(nom.equals("null") || nom == null)
			{
				delete();
				return;
			}

			if(name == null || name.equals("null"))
				name = nom;
			else if(nom.equals(name))
				return;
			else
			{
				privAVLNode temp = new privAVLNode(this,null);
				mainRoot.findDelete(temp);
				logPrint("	Device "+name+" has changed its name to "+nom);
				name = nom;
			}
			if(!mainRoot.insert(this))
			{
				myConnection.kThread();
			}
			else
				logPrint("	Device "+name+" has connected to the server.");
		}