![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * WNS (Wireless Network Simulator) * 00003 * __________________________________________________________________________ * 00004 * * 00005 * Copyright (C) 2004-2006 * 00006 * Chair of Communication Networks (ComNets) * 00007 * Kopernikusstr. 16, D-52074 Aachen, Germany * 00008 * phone: ++49-241-80-27910 (phone), fax: ++49-241-80-22242 * 00009 * email: wns@comnets.rwth-aachen.de * 00010 * www: http://wns.comnets.rwth-aachen.de * 00011 ******************************************************************************/ 00012 00013 #ifndef GLUE_ARQFSM_STOPANDWAIT_WAITINGFORACK_HPP 00014 #define GLUE_ARQFSM_STOPANDWAIT_WAITINGFORACK_HPP 00015 00016 #include <GLUE/arqfsm/stopandwait/BaseState.hpp> 00017 00018 namespace glue { namespace arqfsm { namespace stopandwait { 00019 00020 class WaitingForACK : 00021 public BaseState 00022 { 00023 public: 00024 WaitingForACK(FSMFU::BaseFSM* t) : 00025 BaseState(t, "glue_arqfsm_stopandwait_WaitingForACK") 00026 {} 00027 00028 void 00029 onInitState(); 00030 00031 void 00032 onExitState(); 00033 00034 private: 00035 virtual StateInterface* 00036 onSendData(const wns::ldk::CompoundPtr& compound); 00037 00038 virtual StateInterface* 00039 onACK(int sequenceNumber); 00040 00041 virtual StateInterface* 00042 onWakeup(); 00043 00044 virtual void 00045 onIsAccepting(bool& accepting) const; 00046 00047 virtual StateInterface* 00048 onTimeout(); 00049 }; 00050 00051 } // stopandwait 00052 } // arqfsm 00053 } // glue 00054 00055 #endif // GLUE_ARQFSM_STOPANDWAIT_WAITINGFORACK_HPP 00056 00057
1.5.5