public TCPGameLink(Frame parent, String ip) {
		this.parent = parent;
		try {
			client = new Socket(InetAddress.getByName(ip), PORTNO);
			client.setTcpNoDelay(true);
			outStream =
					new BufferedOutputStream(client.getOutputStream());
			inStream =
					new BufferedInputStream(client.getInputStream());
			new ModalDialog(parent, "Connect succeeded!", "Connected to Game Link server.", "You may now start a two player game.");
			Thread t = new Thread(this);
			t.start();
			clientConnected = true;
		} catch (Exception e) {
			new ModalDialog(parent, "Connect failed", "Cannot connect to host " + ip + ":" + PORTNO,
					"Ensure 'allow connections' is checked on the server.");
		}
	}