@@ -0,0 +1,981 @@
+package jmemproxy.test;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.DataOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.net.Socket;%0Aimport java.net.UnknownHostException;%0A%0Apublic class TcpClient %7B%0A%09public static void main(String argv%5B%5D) throws IOException %7B%0A%09%09String request;%0A%09%09String response;%0A%09%09BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));%0A%09%09Socket clientSocket = null;%0A%09%09try %7B%0A%09%09%09clientSocket = new Socket(%22127.0.0.1%22, 11218);%0A%09%09%09DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());%0A%09%09%09BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));%0A%09%09%09while (true) %7B%0A%09%09%09%09request = inFromUser.readLine();%0A%09%09%09%09outToServer.writeBytes(request + '%5Cn');%0A%09%09%09%09response = inFromServer.readLine();%0A%09%09%09%09System.out.println(%22FROM SERVER: %22 + response);%0A%09%09%09%7D%0A%09%09%7D finally %7B%0A%09%09%09if (clientSocket != null)%0A%09%09%09%09clientSocket.close();%0A%09%09%7D%0A%0A%09 %7D%0A%0A%7D%0A

Add tcp client for testing