public static void runClient() {
		Socket socket = new Socket();
		try {
			System.out.printf("connecting to server...\n");
			socket.connect(new InetSocketAddress("localhost", 1234));
			System.out.printf("server connected...\n");
			
			InputStream in = socket.getInputStream();
			byte[] buff = new byte[1024];
			
			socket.close();
			for (int i = 0; i < 2; i ++) {
				System.out.printf("going to read...\n");
				int len = in.read(buff);
				System.out.printf("read len = %d\n", len);
				if (len > 0)
					System.out.printf(new String(buff, 0, len) + "\n");
			}
			
			in.close();
			System.out.printf("closed");
		} catch (IOException e) {
			System.out.printf("client exception: " + e.toString() + "\n");
		} finally {
			/*try {
				socket.close();
			} catch (IOException e) {
			}*/
		}
	}