public class StringLineTcpClient {
public static void main(String[] args) {
StringLineClientHandler handler = new StringLineClientHandler();
Client client = new TcpClient(new StringLineDecoder(),
new StringLineEncoder(), handler);
Session session = client.connect("localhost", 9900);
session.encode("hello client");
String ret = (String)session.getResult(1000);
System.out.println("receive[" + ret + "]");