def setup(self):
try:<EOL><INDENT>self.TERM = self.request.term<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>self.setterm(self.TERM)<EOL>self.sock = self.request._sock<EOL>for k in self.DOACK.keys():<EOL><INDENT>self.sendcommand(self.DOACK[k], k)<EOL><DEDENT>for k in self.WILLACK.keys():<EOL><INDENT>self.sendcommand(self.WILLACK[k], k)<EOL><DEDENT>
Connect incoming connection to a telnet session