'Process incoming DO, DONT, WILL, WONT.'

def _telnet_negotiate_option(self, command, option):

    known = False
    for item in self._telnet_options:
        if (item.option == option):
            item.process_incoming(command)
            known = True
    if (not known):
        if ((command == WILL) or (command == DO)):
            self.telnet_send_option((DONT if (command == WILL) else WONT), option)
            if self.logger:
                self.logger.warning('rejected    Telnet    option:    {!r}'.format(option))
