00001 /* 00002 * Copyright (c) 2006-2007 by the Protocol Engineering Lab, U of Delaware 00003 * All rights reserved. 00004 * 00005 * Protocol Engineering Lab web page : http://pel.cis.udel.edu/ 00006 * 00007 * Paul D. Amer <amer@@cis,udel,edu> 00008 * Armando L. Caro Jr. <acaro@@cis,udel,edu> 00009 * 00010 * Redistribution and use in source and binary forms, with or without 00011 * modification, are permitted provided that the following conditions 00012 * are met: 00013 * 00014 * 1. Redistributions of source code must retain the above copyright 00015 * notice, this list of conditions and the following disclaimer. 00016 * 00017 * 2. Redistributions in binary form must reproduce the above copyright 00018 * notice, this list of conditions and the following disclaimer in the 00019 * documentation and/or other materials provided with the distribution. 00020 * 00021 * 3. Neither the name of the University nor of the Laboratory may be used 00022 * to endorse or promote products derived from this software without 00023 * specific prior written permission. 00024 * 00025 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 00026 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00027 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00028 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00029 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00030 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00031 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00032 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00033 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00034 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00035 * SUCH DAMAGE. 00036 * 00037 * @(#) $Header: /cvsroot/nsnam/ns-2/sctp/sctp-hbAfterRto.h,v 1.3 2007/06/17 21:44:40 tom_henderson Exp $ (UD/PEL) 00038 */ 00039 00040 /* HbAfterRto extension sends a heartbeat immediately after timeout 00041 * retransmission. The idea is to give the destinations a chance to get an 00042 * RTT measurement after their RTO is backed off. The hope is to avoid 00043 * unnecessarily large RTOs (especially on the alternate destinations). 00044 */ 00045 00046 #ifndef ns_sctp_hbAfterRto_h 00047 #define ns_sctp_hbAfterRto_h 00048 00049 #include "sctp.h" 00050 00051 class HbAfterRtoSctpAgent : public virtual SctpAgent 00052 { 00053 public: 00054 HbAfterRtoSctpAgent(); 00055 00056 virtual void Timeout(SctpChunkType_E, SctpDest_S *); 00057 00058 protected: 00059 virtual void delay_bind_init_all(); 00060 virtual int delay_bind_dispatch(const char *varName, const char *localName, 00061 TclObject *tracer); 00062 }; 00063 00064 #endif