/[resiprocate]/main/sip/resiprocate/TransactionUser.hxx
ViewVC logotype

Diff of /main/sip/resiprocate/TransactionUser.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4217 by derek, Sat Apr 2 23:05:02 2005 UTC revision 4335 by jason, Tue Apr 12 21:40:15 2005 UTC
# Line 1  Line 1 
1  #if !defined(RESIP_TU_HXX)  #if !defined(RESIP_TU_HXX)
2  #define RESIP_TU_HXX  #define RESIP_TU_HXX
3    
4    #include <iosfwd>
5    #include <vector>
6  #include "resiprocate/os/TimeLimitFifo.hxx"  #include "resiprocate/os/TimeLimitFifo.hxx"
7  #include "resiprocate/os/Data.hxx"  #include "resiprocate/os/Data.hxx"
8  #include "resiprocate/Message.hxx"  #include "resiprocate/Message.hxx"
9    #include "resiprocate/MessageFilterRule.hxx"
10    
11    
12  namespace resip  namespace resip
13  {  {
# Line 13  Line 17 
17  {  {
18     public:     public:
19        void post(Message *);        void post(Message *);
20          bool isMyDomain(const Uri& uri) const;
21          bool isMyDomain(const Data& domain) const;
22    
23          void addDomain(const Data& domain);
24          void addDomain(const Data& domain, int port);      
25    
26          virtual const Data& name() const=0;
27          virtual std::ostream& encode(std::ostream& strm) const;
28          void setMessageFilterRuleList(MessageFilterRuleList &rules);
29    
30     protected:     protected:
31        TransactionUser();        TransactionUser();
32          TransactionUser(MessageFilterRuleList &rules);
33    
34        virtual ~TransactionUser()=0;        virtual ~TransactionUser()=0;
35        virtual bool isForMe(const SipMessage& msg) const=0;        virtual bool isForMe(const SipMessage& msg) const;
36                
37        TimeLimitFifo<Message> mFifo;        TimeLimitFifo<Message> mFifo;
38    
39     private:     private:
40          typedef std::vector<Uri> DomainList;
41          DomainList mDomainList;
42          
43        void postToTransactionUser(Message* msg, TimeLimitFifo<Message>::DepthUsage usage);        void postToTransactionUser(Message* msg, TimeLimitFifo<Message>::DepthUsage usage);
44        unsigned int size() const;        unsigned int size() const;
45        bool wouldAccept(TimeLimitFifo<Message>::DepthUsage usage) const;        bool wouldAccept(TimeLimitFifo<Message>::DepthUsage usage) const;
46    
47        friend class TuSelector;              friend class TuSelector;      
48    
49          MessageFilterRuleList mRuleList;
50  };  };
51    
52    std::ostream&
53    operator<<(std::ostream& strm, const TransactionUser& tu);
54    
55  }  }
56    
57  #endif  #endif

Legend:
Removed from v.4217  
changed lines
  Added in v.4335

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27