reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ForkControlMessage.hxx
Go to the documentation of this file.
1#ifndef FORK_CONTROL_MESSAGE_HXX
2#define FORK_CONTROL_MESSAGE_HXX 1
3
6#include "rutil/Data.hxx"
7#include "rutil/Inserter.hxx"
8
9namespace repro
10{
11
13{
14 public:
16 const resip::Data& tid,
18 bool cancelAllClientTransactions=false):
20 {
21 mShouldCancelAll=cancelAllClientTransactions;
22 }
23
26 {
27 mShouldCancelAll=orig.mShouldCancelAll;
28 mTransactionsToProcess=orig.mTransactionsToProcess;
29 mTransactionsToCancel=orig.mTransactionsToCancel;
30 }
31
33
34 virtual ForkControlMessage* clone() const
35 {
36 return new ForkControlMessage(*this);
37 }
38
40 {
41 ostr << "ForkControlMessage(tid="<<mTid<<"): "
42 << " newTrans=" << resip::Inserter(mTransactionsToProcess)
43 << " cancelTrans=" << resip::Inserter(mTransactionsToCancel)
44 << " cancelAll=" << mShouldCancelAll;
45 return ostr;
46 }
47 virtual EncodeStream& encodeBrief(EncodeStream& ostr) const { return encode(ostr);}
48
49 std::vector<resip::Data> mTransactionsToProcess;
50 std::vector<resip::Data> mTransactionsToCancel;
52}; //class
53
54} //namespace repro
55#endif
56
57
58/* ====================================================================
59 * The Vovida Software License, Version 1.0
60 *
61 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
62 *
63 * Redistribution and use in source and binary forms, with or without
64 * modification, are permitted provided that the following conditions
65 * are met:
66 *
67 * 1. Redistributions of source code must retain the above copyright
68 * notice, this list of conditions and the following disclaimer.
69 *
70 * 2. Redistributions in binary form must reproduce the above copyright
71 * notice, this list of conditions and the following disclaimer in
72 * the documentation and/or other materials provided with the
73 * distribution.
74 *
75 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
76 * and "Vovida Open Communication Application Library (VOCAL)" must
77 * not be used to endorse or promote products derived from this
78 * software without prior written permission. For written
79 * permission, please contact vocal@vovida.org.
80 *
81 * 4. Products derived from this software may not be called "VOCAL", nor
82 * may "VOCAL" appear in their name, without prior written
83 * permission of Vovida Networks, Inc.
84 *
85 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
86 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
87 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
88 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
89 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
90 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
91 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
92 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
93 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
94 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
95 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
96 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
97 * DAMAGE.
98 *
99 * ====================================================================
100 */
virtual EncodeStream & encode(EncodeStream &ostr) const
output the entire message to stream
ForkControlMessage(const ForkControlMessage &orig)
std::vector< resip::Data > mTransactionsToProcess
virtual EncodeStream & encodeBrief(EncodeStream &ostr) const
output a brief description to stream
std::vector< resip::Data > mTransactionsToCancel
ForkControlMessage(const repro::Processor &proc, const resip::Data &tid, resip::TransactionUser *tuPassed, bool cancelAllClientTransactions=false)
virtual ForkControlMessage * clone() const
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
The base-class for an RFC 3261 Transaction User.
This Class is used to implement a primitive form of RPC using loose XML formatting.
InserterClass< T > Inserter(const T &t)
Templatized function to construct an instance of InserterClass for a container to be inserted.
Definition Inserter.hxx:312
#define EncodeStream
void list()
Definition userAdmin.cxx:66