2000-09-01 14:46:32 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_MESSAGE_QUEUE_H
|
|
|
|
|
#define LDAP_MESSAGE_QUEUE_H
|
|
|
|
|
|
|
|
|
|
#include <stack>
|
|
|
|
|
|
|
|
|
|
#include "LDAPUrlList.h"
|
|
|
|
|
|
|
|
|
|
class LDAPAsynConnection;
|
|
|
|
|
class LDAPMsg;
|
|
|
|
|
class LDAPRequest;
|
|
|
|
|
class LDAPSearchRequest;
|
|
|
|
|
class LDAPUrl;
|
|
|
|
|
typedef stack<LDAPRequest*> LDAPRequestStack;
|
2000-10-03 14:25:34 -04:00
|
|
|
typedef list<LDAPRequest*> LDAPRequestList;
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
class LDAPMessageQueue{
|
|
|
|
|
public :
|
|
|
|
|
LDAPMessageQueue(LDAPRequest *conn);
|
|
|
|
|
~LDAPMessageQueue();
|
|
|
|
|
LDAPMsg* getNext();
|
2000-10-03 14:25:34 -04:00
|
|
|
LDAPRequest* chaseReferral(LDAPMsg* ref);
|
2000-09-01 14:46:32 -04:00
|
|
|
LDAPRequestStack* getRequestStack();
|
2000-10-03 14:25:34 -04:00
|
|
|
|
|
|
|
|
private :
|
|
|
|
|
LDAPRequestStack m_activeReq;
|
|
|
|
|
LDAPRequestList m_issuedReq;
|
2000-09-01 14:46:32 -04:00
|
|
|
};
|
|
|
|
|
#endif //ifndef LDAP_MESSAGE_QUEUE_H
|
|
|
|
|
|