SCTPAlg.h

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2008 Irene Ruengeler
00003 // Copyright (C) 2010 Thomas Dreibholz
00004 //
00005 // This program is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (at your option) any later version.
00009 //
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, see <http://www.gnu.org/licenses/>.
00017 //
00018 
00019 #ifndef __PLAINSCTP_H
00020 #define __PLAINSCTP_H
00021 
00022 #include <omnetpp.h>
00023 #include "SCTPAlgorithm.h"
00024 
00025 
00029 class INET_API SCTPAlgStateVariables : public SCTPStateVariables
00030 {
00031   public:
00032      //...
00033 };
00034 
00035 
00036 class INET_API SCTPAlg : public SCTPAlgorithm
00037 {
00038   protected:
00039      SCTPAlgStateVariables *state;
00040 
00041   public:
00045      SCTPAlg();
00046 
00050      virtual ~SCTPAlg();
00051 
00055      virtual SCTPStateVariables* createStateVariables();
00056 
00057      virtual void established(bool active);
00058 
00059      virtual void connectionClosed();
00060 
00061      virtual void processTimer(cMessage* timer, SCTPEventCode& event);
00062 
00063      virtual void sendCommandInvoked(SCTPPathVariables* path);
00064 
00065      virtual void receivedDataAck(uint32 firstSeqAcked);
00066 
00067      virtual void receivedDuplicateAck();
00068 
00069      virtual void receivedAckForDataNotYetSent(uint32 seq);
00070 
00071      virtual void sackSent();
00072 
00073      virtual void dataSent(uint32 fromseq);
00074 
00075 };
00076 
00077 #endif