public static void writeToAll(String message)
	{
		if (transferType.equals("UDP"))
		{
			for(int i = 0; i < userList.size(); i++)
			{
				try {
					UDPSocket.send(new DatagramPacket(message.getBytes(),message.getBytes().length,InetAddress.getByName(userList.get(i).getIp()),Integer.parseInt(Resource.UPORT)));
				} catch (Exception e){ e.printStackTrace(); }
			}
		}
		else
		{
			for (int i = 0; i < clientThreads.size(); i++)
			{
				clientThreads.get(i).writeToClient(message);
			}
		}
		
	}