Logo Search packages:      
Sourcecode: ldaptor version File versions

def ldaptor::protocols::ldap::ldapclient::LDAPClient::send_multiResponse (   self,
  op,
  handler,
  args,
  kwargs 
)

Send an LDAP operation to the server, expecting one or more
responses.

@param op: the operation to send

@type op: LDAPProtocolRequest

@param handler: a callable that will be called for each
response. It should return a boolean, whether this was the
final response.

@param args: positional arguments to pass to handler

@param kwargs: keyword arguments to pass to handler

@return: the result from the last handler as a deferred that
completes when the last response has been received

@rtype: Deferred LDAPProtocolResponse

Definition at line 109 of file ldapclient.py.

00109                                                               :
        """
        Send an LDAP operation to the server, expecting one or more
        responses.

        @param op: the operation to send

        @type op: LDAPProtocolRequest

        @param handler: a callable that will be called for each
        response. It should return a boolean, whether this was the
        final response.

        @param args: positional arguments to pass to handler

        @param kwargs: keyword arguments to pass to handler

        @return: the result from the last handler as a deferred that
        completes when the last response has been received

        @rtype: Deferred LDAPProtocolResponse
        """
        msg = self._send(op)
      assert op.needs_answer
        d = defer.Deferred()
        self.onwire[msg.id]=(d, handler, args, kwargs)
      self.transport.write(str(msg))
        return d

    def send_noResponse(self, op):


Generated by  Doxygen 1.6.0   Back to index