Java client/server sockets
问题 I'm starting off with java sockets and have strange [lack of] output. Here's my source for the socket methods: Client source code: public void loginToServer(String host, String usnm ) { try { Socket testClient = new Socket(host,1042); System.out.println ("Connected to host at " + host); logString = ("CONNECTED: " + host); outGoing = new PrintWriter(testClient.getOutputStream(), true); outGoing.print("Hello from " + testClient.getLocalSocketAddress()); InputStream inFromServer = testClient