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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4122 - (show annotations) (download)
Fri Apr 1 21:12:22 2005 UTC (14 years, 9 months ago) by derek
File size: 2977 byte(s)
Added a TuSelector to have the stack dispatch messages to a particular transaction user...see TransactionUser.hxx and comments in SipStack.hxx
1 #if !defined(RESIP_TU_HXX)
2 #define RESIP_TU_HXX
3
4 #include "resiprocate/os/TimeLimitFifo.hxx"
5 #include "resiprocate/Message.hxx"
6
7 namespace resip
8 {
9 class SipMessage;
10
11 class TransactionUser
12 {
13 public:
14 virtual bool isForMe(const SipMessage& msg) const=0;
15 virtual void postToTransactionUser(Message* msg, TimeLimitFifo<Message>::DepthUsage usage)=0;
16 virtual bool isShutDown() const=0;
17 // virtual bool messageAvailable() const=0;
18 virtual unsigned int size() const=0;
19 virtual bool wouldAccept(TimeLimitFifo<Message>::DepthUsage usage) const;
20 };
21 }
22
23 #endif
24
25 /* ====================================================================
26 * The Vovida Software License, Version 1.0
27 *
28 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
29 *
30 * Redistribution and use in source and binary forms, with or without
31 * modification, are permitted provided that the following conditions
32 * are met:
33 *
34 * 1. Redistributions of source code must retain the above copyright
35 * notice, this list of conditions and the following disclaimer.
36 *
37 * 2. Redistributions in binary form must reproduce the above copyright
38 * notice, this list of conditions and the following disclaimer in
39 * the documentation and/or other materials provided with the
40 * distribution.
41 *
42 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
43 * and "Vovida Open Communication Application Library (VOCAL)" must
44 * not be used to endorse or promote products derived from this
45 * software without prior written permission. For written
46 * permission, please contact vocal@vovida.org.
47 *
48 * 4. Products derived from this software may not be called "VOCAL", nor
49 * may "VOCAL" appear in their name, without prior written
50 * permission of Vovida Networks, Inc.
51 *
52 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
53 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
54 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
55 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
56 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
57 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
58 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
59 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
60 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
61 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
62 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
63 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
64 * DAMAGE.
65 *
66 * ====================================================================
67 *
68 * This software consists of voluntary contributions made by Vovida
69 * Networks, Inc. and many individuals on behalf of Vovida Networks,
70 * Inc. For more information on Vovida Networks, Inc., please see
71 * <http://www.vovida.org/>.
72 *
73 */

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27