reSIProcate/stack  9694
TransportFailure.cxx
Go to the documentation of this file.
00001 #include "TransportFailure.hxx"
00002 
00003 using namespace resip;
00004 
00005 TransportFailure::TransportFailure(const Data& transactionId, FailureReason f, int subCode)
00006    : mTransactionId(transactionId),
00007      mFailureReason(f), mFailureSubCode(subCode)
00008 {
00009 }
00010 
00011 const Data&
00012 TransportFailure::getTransactionId() const
00013 {
00014    return mTransactionId;
00015 }
00016 
00017 bool
00018 TransportFailure::isClientTransaction() const
00019 {
00020    // !jf! not strictly true
00021    return true;
00022 }
00023 
00024 EncodeStream&
00025 TransportFailure::encodeBrief(EncodeStream& str) const
00026 {
00027    return str << "TransportFailure: " << mTransactionId;
00028 }
00029 
00030 EncodeStream&
00031 TransportFailure::encode(EncodeStream& strm) const
00032 {
00033    return encodeBrief(strm);
00034 }
00035 
00036 /* ====================================================================
00037  * The Vovida Software License, Version 1.0
00038  *
00039  * Redistribution and use in source and binary forms, with or without
00040  * modification, are permitted provided that the following conditions
00041  * are met:
00042  *
00043  * 1. Redistributions of source code must retain the above copyright
00044  *    notice, this list of conditions and the following disclaimer.
00045  *
00046  * 2. Redistributions in binary form must reproduce the above copyright
00047  *    notice, this list of conditions and the following disclaimer in
00048  *    the documentation and/or other materials provided with the
00049  *    distribution.
00050  *
00051  * 3. The names "VOCAL", "Vovida Open Communication Application Library",
00052  *    and "Vovida Open Communication Application Library (VOCAL)" must
00053  *    not be used to endorse or promote products derived from this
00054  *    software without prior written permission. For written
00055  *    permission, please contact vocal@vovida.org.
00056  *
00057  * 4. Products derived from this software may not be called "VOCAL", nor
00058  *    may "VOCAL" appear in their name, without prior written
00059  *    permission of Vovida Networks, Inc.
00060  *
00061  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
00062  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00063  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
00064  * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
00065  * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
00066  * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
00067  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00068  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00069  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00070  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00071  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00072  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00073  * DAMAGE.
00074  *
00075  * ====================================================================
00076  *
00077  * This software consists of voluntary contributions made by Vovida
00078  * Networks, Inc. and many individuals on behalf of Vovida Networks,
00079  * Inc.  For more information on Vovida Networks, Inc., please see
00080  * <http://www.vovida.org/>.
00081  *
00082  * vi: set shiftwidth=3 expandtab:
00083  */