public ajclient(String hn, int port, ajclientdata data, boolean usetrans) 
						throws IOException, ClassNotFoundException{
		hostname = new String(hn);
		prt = port;
		cdata = data;

		soc = new Socket(hostname, prt);
		out = new ObjectOutputStream(soc.getOutputStream());
		in = new ObjectInputStream(soc.getInputStream());

		if (!usetrans) {
			(new Thread(this)).start();
		}
		trans = usetrans;
	}