Back to index

openldap  2.4.31
LDAPMessageQueue.h
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
00004  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00005  */
00006 
00007 
00008 #ifndef LDAP_MESSAGE_QUEUE_H
00009 #define LDAP_MESSAGE_QUEUE_H
00010 
00011 #include <stack>
00012 
00013 #include <LDAPUrlList.h>
00014 #include <LDAPMessage.h>
00015 
00016 class LDAPAsynConnection;
00017 class LDAPRequest;
00018 class LDAPSearchRequest;
00019 class LDAPUrl;
00020 typedef std::stack<LDAPRequest*> LDAPRequestStack;
00021 typedef std::list<LDAPRequest*> LDAPRequestList;
00022 
00027 class LDAPMessageQueue{
00028     public :
00029 
00036         LDAPMessageQueue(LDAPRequest *conn);
00040         ~LDAPMessageQueue();
00041 
00050         LDAPMsg* getNext();
00051 
00057         LDAPRequest* chaseReferral(LDAPMsg* ref);
00058 
00065         LDAPRequestStack* getRequestStack(); 
00066     
00067     private :
00068         LDAPRequestStack m_activeReq;
00069         LDAPRequestList m_issuedReq;
00070 };
00071 #endif //ifndef LDAP_MESSAGE_QUEUE_H
00072