process method

Future<LdapResult> process(
  1. RequestOp rop
)

Process a generic LDAP operation.

This is used for processing all LDAP requests, except for LDAP search requests (which should use processSearch).

Throws a LdapUsageException if the connection is closed.

Implementation

Future<LdapResult> process(RequestOp rop) {
  if (isClosed()) {
    throw LdapUsageException('not connected');
  }

  var m = LDAPMessage(++_nextMessageId, rop);
  var op = _FuturePendingOp(m);
  _queueOp(op);
  return op.completer.future;
}