reSIProcate/DialogUsageManager  9694
KeepAliveTimeout.cxx
Go to the documentation of this file.
00001 #include "resip/stack/ApplicationMessage.hxx"
00002 #include "resip/dum/Handles.hxx"
00003 #include "resip/dum/KeepAliveTimeout.hxx"
00004 #include "resip/stack/Message.hxx"
00005 #include "rutil/DataStream.hxx"
00006 #include "rutil/WinLeakCheck.hxx"
00007 
00008 using namespace resip;
00009 
00010 KeepAliveTimeout::KeepAliveTimeout(const Tuple& target,int id)
00011    : mTarget(target),
00012      mId(id)
00013 {}
00014 
00015 KeepAliveTimeout::KeepAliveTimeout(const KeepAliveTimeout& timeout)
00016    : mTarget(timeout.mTarget),
00017      mId(timeout.mId)
00018 {
00019 }
00020 
00021 KeepAliveTimeout::~KeepAliveTimeout()
00022 {}
00023 
00024 Message*
00025 KeepAliveTimeout::clone() const
00026 {
00027    return new KeepAliveTimeout(*this);
00028 }
00029 
00030 EncodeStream&
00031 KeepAliveTimeout::encodeBrief(EncodeStream& strm) const
00032 {
00033    return encode(strm);
00034 }
00035 
00036 EncodeStream& 
00037 KeepAliveTimeout::encode(EncodeStream& strm) const
00038 {
00039    return strm << "KeepAliveTimeout" << mTarget << "(" << mId << ")";
00040 }
00041 
00042 KeepAlivePongTimeout::KeepAlivePongTimeout(const Tuple& target,int id)
00043    : mTarget(target),
00044      mId(id)
00045 {}
00046 
00047 KeepAlivePongTimeout::KeepAlivePongTimeout(const KeepAlivePongTimeout& timeout)
00048    : mTarget(timeout.mTarget),
00049      mId(timeout.mId)
00050 {
00051 }
00052 
00053 KeepAlivePongTimeout::~KeepAlivePongTimeout()
00054 {}
00055 
00056 Message*
00057 KeepAlivePongTimeout::clone() const
00058 {
00059    return new KeepAlivePongTimeout(*this);
00060 }
00061 
00062 EncodeStream&
00063 KeepAlivePongTimeout::encodeBrief(EncodeStream& strm) const
00064 {
00065    return encode(strm);
00066 }
00067 
00068 EncodeStream& 
00069 KeepAlivePongTimeout::encode(EncodeStream& strm) const
00070 {
00071    return strm << "KeepAlivePongTimeout" << mTarget << "(" << mId << ")";
00072 }
00073 
00074 /* ====================================================================
00075  * The Vovida Software License, Version 1.0 
00076  * 
00077  * Redistribution and use in source and binary forms, with or without
00078  * modification, are permitted provided that the following conditions
00079  * are met:
00080  * 
00081  * 1. Redistributions of source code must retain the above copyright
00082  *    notice, this list of conditions and the following disclaimer.
00083  * 
00084  * 2. Redistributions in binary form must reproduce the above copyright
00085  *    notice, this list of conditions and the following disclaimer in
00086  *    the documentation and/or other materials provided with the
00087  *    distribution.
00088  * 
00089  * 3. The names "VOCAL", "Vovida Open Communication Application Library",
00090  *    and "Vovida Open Communication Application Library (VOCAL)" must
00091  *    not be used to endorse or promote products derived from this
00092  *    software without prior written permission. For written
00093  *    permission, please contact vocal@vovida.org.
00094  *
00095  * 4. Products derived from this software may not be called "VOCAL", nor
00096  *    may "VOCAL" appear in their name, without prior written
00097  *    permission of Vovida Networks, Inc.
00098  * 
00099  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
00100  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00101  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
00102  * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
00103  * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
00104  * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
00105  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00106  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00107  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00108  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00109  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00110  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00111  * DAMAGE.
00112  * 
00113  * ====================================================================
00114  * 
00115  * This software consists of voluntary contributions made by Vovida
00116  * Networks, Inc. and many individuals on behalf of Vovida Networks,
00117  * Inc.  For more information on Vovida Networks, Inc., please see
00118  * <http://www.vovida.org/>.
00119  *
00120  */