public int send(ajpacket s) {
		ajpacket msg;
		// System.out.println(s.msg);
		try {
			out.writeObject(s);
			if (trans) {
				msg = (ajpacket) in.readObject();
				if (cdata != null) {
					cdata.recv(this, msg);
				}
			}
		} catch (IOException e) {
			return -1;
		} catch (ClassNotFoundException e) {
			return -1;
		}
		return 0;
	}