nearly working simple telnet server

almost working simple telnet server.  I need to write the printLog
function, and then this should work.