![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /******************************************************************************* 00002 * This file is part of openWNS (open Wireless Network Simulator) 00003 * _____________________________________________________________________________ 00004 * 00005 * Copyright (C) 2004-2007 00006 * Chair of Communication Networks (ComNets) 00007 * Kopernikusstr. 16, D-52074 Aachen, Germany 00008 * phone: ++49-241-80-27910, 00009 * fax: ++49-241-80-22242 00010 * email: info@openwns.org 00011 * www: http://www.openwns.org 00012 * _____________________________________________________________________________ 00013 * 00014 * openWNS is free software; you can redistribute it and/or modify it under the 00015 * terms of the GNU Lesser General Public License version 2 as published by the 00016 * Free Software Foundation; 00017 * 00018 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00019 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00020 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00021 * details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public License 00024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00025 * 00026 ******************************************************************************/ 00027 00028 #ifndef TCP_COMPONENT_HPP 00029 #define TCP_COMPONENT_HPP 00030 00031 #include <TCP/UpperConvergence.hpp> 00032 #include <TCP/FlowHandler.hpp> 00033 00034 #include <WNS/node/component/Component.hpp> 00035 #include <WNS/ldk/Layer.hpp> 00036 #include <WNS/ldk/fun/Main.hpp> 00037 #include <WNS/ldk/fun/Sub.hpp> 00038 #include <WNS/ldk/FlowSeparator.hpp> 00039 #include <WNS/logger/Logger.hpp> 00040 #include <WNS/service/nl/Service.hpp> 00041 #include <WNS/service/dll/FlowEstablishmentAndRelease.hpp> 00042 #include <WNS/service/dll/Handler.hpp> 00043 00044 namespace tcp { 00045 00046 class Service; 00047 class IPDataHandler; 00048 class UpperConvergence; 00049 class LowerConvergence; 00050 class HandshakeStrategyInterface; 00051 00056 class Component : 00057 virtual public wns::ldk::Layer, 00058 public wns::node::component::Component 00059 { 00060 public: 00061 Component(wns::node::Interface* node, 00062 const wns::pyconfig::View& config); 00063 00064 virtual 00065 ~Component(); 00066 00067 virtual void 00068 onNodeCreated(); 00069 00070 virtual void 00071 onWorldCreated(); 00072 00073 virtual void 00074 onShutdown(); 00075 00076 private: 00077 Component(const Component&); // disallow copy constructor 00078 Component& operator=(const Component&); // disallow assignment 00079 00083 virtual void 00084 doStartup(); 00085 00090 wns::service::nl::protocolNumber 00091 stringToProtocolNumber(std::string _protNr); 00092 00096 wns::ldk::fun::Main* fun; 00097 00103 wns::ldk::fun::Sub* subFUN; 00104 00108 Service* tlService; 00109 00113 UpperConvergence* upperConvergence; 00114 00119 IPDataHandler* ipDataHandler; 00120 00124 LowerConvergence* lowerConvergence; 00125 00129 wns::service::nl::Service* ipDataTransmission; 00130 00134 wns::ldk::FlowSeparator* flowSeparator; 00135 00139 HandshakeStrategyInterface* handshakeStrategy; 00140 00141 wns::logger::Logger logger; 00142 00146 tcp::FlowHandler* tcpFlowHandler; 00147 wns::service::dll::FlowEstablishmentAndRelease* fear; 00148 wns::service::dll::Notification* dllNotification; 00149 }; 00150 00151 } // namespace tcp 00152 00153 00154 #endif // NOT defined TCP_COMPONENT_HPP 00155 00156
1.5.5