HttpTunnelingClientExample

Michael McGrady mmcgrady at topiatechnology.com
Mon Jun 29 19:41:56 EDT 2009


The noted example client breaks if there is a String with 0 length  
returned from the command line.  This is probably obvious to  
everyone.  An equally obvious fix is to put in a pass through user  
instruction like:



             if (line.length() != 0) {
	            // Sends the received line to the server.
	            lastWriteFuture = channelFuture.getChannel().write(line);
             } else {
             	System.out.println("Enter \"quit\" ") ;
             }

in the main method.

Mike



Mike McGrady
Principal Investigator AF081-028 AFRL SBIR
Senior Engineer
Topia Technology, Inc
1.253.720.3365
mmcgrady at topiatechnology.com







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090629/2764f083/attachment.html 


More information about the netty-users mailing list