Novell.Directory.Ldap.LdapConnection.SendRequestToServer C# (CSharp) Method

SendRequestToServer() private method

Locates the appropriate message agent and sends the Ldap request to a directory server.
LdapException A general exception which includes an error /// message and an Ldap error code. ///
private SendRequestToServer ( LdapMessage msg, int timeout, LdapResponseQueue queue, BindProperties bindProps ) : LdapResponseQueue
msg LdapMessage the message to send /// ///
timeout int the timeout value /// ///
queue LdapResponseQueue the response queue or null /// ///
bindProps BindProperties
return LdapResponseQueue
        private LdapResponseQueue SendRequestToServer(LdapMessage msg, int timeout, LdapResponseQueue queue, BindProperties bindProps)
        {
            MessageAgent agent;
            if (queue == null)
            {
                agent = new MessageAgent();
                queue = new LdapResponseQueue(agent);
            }
            else
            {
                agent = queue.MessageAgent;
            }

            agent.sendMessage(conn, msg, timeout, queue, bindProps);
            return queue;
        }