TelnetClient example

You want to establish a telnet session with Google? Does that really make sense?

You appear to be mixing code for a telnet server with code for a web server. Why?

What are you really trying to do?