![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * WiMeMac * 00003 * This file is part of openWNS (open Wireless Network Simulator) 00004 * _____________________________________________________________________________ 00005 * 00006 * Copyright (C) 2004-2011 00007 * Chair of Communication Networks (ComNets) 00008 * Kopernikusstr. 5, D-52074 Aachen, Germany 00009 * phone: ++49-241-80-27910, 00010 * fax: ++49-241-80-22242 00011 * email: info@openwns.org 00012 * www: http://www.openwns.org 00013 * _____________________________________________________________________________ 00014 * 00015 * openWNS is free software; you can redistribute it and/or modify it under the 00016 * terms of the GNU Lesser General Public License version 2 as published by the 00017 * Free Software Foundation; 00018 * 00019 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00020 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00021 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00022 * details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00026 * 00027 ******************************************************************************/ 00028 00029 #ifndef WIMEMAC_ARQ_ARQCOMMAND_H 00030 #define WIMEMAC_ARQ_ARQCOMMAND_H 00031 #include <WNS/ldk/Command.hpp> 00032 #include <WNS/service/dll/Address.hpp> 00033 00034 namespace wimemac { 00035 namespace arq { 00036 00037 class ARQCommand: 00038 public wns::ldk::Command 00039 { 00040 public: 00041 00042 00043 ARQCommand() 00044 { 00045 peer.ACKpolicy = NoACK; 00046 peer.Frametype = Data; 00047 } 00048 00049 00050 00051 enum ACKPolicy { 00052 NoACK, ImmACK, BACK 00053 }; 00054 00055 enum FrameType { 00056 Data, Ack 00057 }; 00058 00059 struct{} local; 00060 00061 struct{ 00062 enum ACKPolicy ACKpolicy; 00063 enum FrameType Frametype; 00064 } peer; 00065 00066 00067 00068 struct{}magic; 00069 00070 private: 00071 00072 00073 00074 00075 }; 00076 } 00077 00078 } 00079 #endif
1.5.5