parameters: (self)
docstring: \
          callback of telnet option. It gets called when option is activated.
          This one here is used to detect when the client agrees on RFC 2217. A
          flag is set so that other functions like check_modem_lines know if the
          client is OK.
docstring_summary: \
          callback of telnet option. It gets called when option is activated.
          This one here is used to detect when the client agrees on RFC 2217. A
          flag is set so that other functions like check_modem_lines know if the
          client is OK.
docstring_tokens: \ callback of telnet option . It gets called when option is activated . This one here is used to detect when the client agrees on RFC 2217 . A flag is set so that other functions like check_modem_lines know if the client is OK .
function: def _client_ok(self):
          """\
          callback of telnet option. It gets called when option is activated.
          This one here is used to detect when the client agrees on RFC 2217. A
          flag is set so that other functions like check_modem_lines know if the
          client is OK.
          """
          # The callback is used for we and they so if one party agrees, we're
          # already happy. it seems not all servers do the negotiation correctly
          # and i guess there are incorrect clients too.. so be happy if client
          # answers one or the other positively.
          self._client_is_rfc2217 = True
          if self.logger:
              self.logger.info("client accepts RFC 2217")
          # this is to ensure that the client gets a notification, even if there
          # was no change
          self.check_modem_lines(force_notification=True)
function_tokens: def _client_ok ( self ) : # The callback is used for we and they so if one party agrees, we're # already happy. it seems not all servers do the negotiation correctly # and i guess there are incorrect clients too.. so be happy if client # answers one or the other positively. self . _client_is_rfc2217 = True if self . logger : self . logger . info ( "client accepts RFC 2217" ) # this is to ensure that the client gets a notification, even if there # was no change self . check_modem_lines ( force_notification = True )