reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
RemoveTransport.hxx
Go to the documentation of this file.
1#ifndef RemoveTransport_Include_Guard
2#define RemoveTransport_Include_Guard
3
6
7namespace resip
8{
10{
11 public:
12 explicit RemoveTransport(unsigned int transportKey) :
13 mTransportKey(transportKey)
14 {}
15 virtual ~RemoveTransport(){}
16
17 virtual const Data& getTransactionId() const {return Data::Empty;}
18 unsigned int getTransportKey() { return mTransportKey; }
19
20 virtual bool isClientTransaction() const {return true;}
21 virtual EncodeStream& encode(EncodeStream& strm) const
22 {
23 return strm << "RemoveTransport: key=" << mTransportKey;
24 }
26 {
27 return strm << "RemoveTransport: key=" << mTransportKey;
28 }
29
30 virtual Message* clone() const
31 {
32 resip_assert(false); return NULL;
33 }
34
35 protected:
36 unsigned int mTransportKey;
37}; // class RemoveTransport
38
39} // namespace resip
40
41#endif // include guard
42
43/* ====================================================================
44 * The Vovida Software License, Version 1.0
45 *
46 * Copyright (c) 2014 Vovida Networks, Inc. All rights reserved.
47 *
48 * Redistribution and use in source and binary forms, with or without
49 * modification, are permitted provided that the following conditions
50 * are met:
51 *
52 * 1. Redistributions of source code must retain the above copyright
53 * notice, this list of conditions and the following disclaimer.
54 *
55 * 2. Redistributions in binary form must reproduce the above copyright
56 * notice, this list of conditions and the following disclaimer in
57 * the documentation and/or other materials provided with the
58 * distribution.
59 *
60 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
61 * and "Vovida Open Communication Application Library (VOCAL)" must
62 * not be used to endorse or promote products derived from this
63 * software without prior written permission. For written
64 * permission, please contact vocal@vovida.org.
65 *
66 * 4. Products derived from this software may not be called "VOCAL", nor
67 * may "VOCAL" appear in their name, without prior written
68 * permission of Vovida Networks, Inc.
69 *
70 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
71 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
72 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
73 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
74 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
75 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
76 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
77 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
78 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
79 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
80 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
81 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
82 * DAMAGE.
83 *
84 * ====================================================================
85 *
86 * This software consists of voluntary contributions made by Vovida
87 * Networks, Inc. and many individuals on behalf of Vovida Networks,
88 * Inc. For more information on Vovida Networks, Inc., please see
89 * <http://www.vovida.org/>.
90 *
91 * vi: set shiftwidth=3 expandtab:
92 */
93
#define resip_assert(x)
This file needs to work for both C and C++ code.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
static const Data Empty
Constant that represents a zero-length data.
Definition Data.hxx:882
The base-class used for message-passing.
Definition Message.hxx:21
virtual const Data & getTransactionId() const
RemoveTransport(unsigned int transportKey)
virtual EncodeStream & encode(EncodeStream &strm) const
output the entire message to stream
virtual bool isClientTransaction() const
unsigned int getTransportKey()
virtual Message * clone() const
virtual EncodeStream & encodeBrief(EncodeStream &strm) const
output a brief description to stream
dcm! – add UnusedChecking(_enum) below;
#define EncodeStream