parameters: (self, command, option)
docstring: Process incoming DO, DONT, WILL, WONT.
docstring_summary: Process incoming DO, DONT, WILL, WONT.
docstring_tokens: Process incoming DO DONT WILL WONT .
function: def _telnetNegotiateOption(self, command, option):
          """Process incoming DO, DONT, WILL, WONT."""
          # check our registered telnet options and forward command to them
          # they know themselves if they have to answer or not
          known = False
          for item in self._telnet_options:
              # can have more than one match! as some options are duplicated for
              # 'us' and 'them'
              if item.option == option:
                  item.process_incoming(command)
                  known = True
          if not known:
              # handle unknown options
              # only answer to positive requests and deny them
              if command == WILL or command == DO:
                  self.telnetSendOption((command == WILL and DONT or WONT), option)
                  if self.logger:
                      self.logger.warning("rejected Telnet option: %r" % (option,))
function_tokens: def _telnetNegotiateOption ( self , command , option ) : # check our registered telnet options and forward command to them # they know themselves if they have to answer or not known = False for item in self . _telnet_options : # can have more than one match! as some options are duplicated for # 'us' and 'them' if item . option == option : item . process_incoming ( command ) known = True if not known : # handle unknown options # only answer to positive requests and deny them if command == WILL or command == DO : self . telnetSendOption ( ( command == WILL and DONT or WONT ) , option ) if self . logger : self . logger . warning ( "rejected Telnet option: %r" % ( option , ) )