User Manual, Developers Guide and API Documentation

UpperConvergence.hpp

Go to the documentation of this file.
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_UPPERCONVERGENCE_HPP
00029 #define TCP_UPPERCONVERGENCE_HPP
00030 
00031 #include <TCP/TCPHeader.hpp>
00032 
00033 #include <WNS/container/Registry.hpp>
00034 
00035 #include <WNS/service/tl/FlowID.hpp>
00036 
00037 #include <WNS/ldk/Command.hpp>
00038 #include <WNS/ldk/CommandTypeSpecifier.hpp>
00039 #include <WNS/ldk/HasConnector.hpp>
00040 #include <WNS/ldk/HasReceptor.hpp>
00041 #include <WNS/ldk/HasDeliverer.hpp>
00042 #include <WNS/ldk/Forwarding.hpp>
00043 #include <WNS/ldk/Command.hpp>
00044 
00045 
00046 namespace tcp {
00047 
00048     class Service;
00049 
00053     class UpperConvergence :
00054         public wns::ldk::CommandTypeSpecifier<>,
00055         public wns::ldk::HasReceptor<>,
00056         public wns::ldk::HasConnector<>,
00057         public wns::ldk::HasDeliverer<>,
00058         public wns::ldk::Forwarding<UpperConvergence>,
00059         public wns::Cloneable<UpperConvergence>
00060     {
00061 
00062     public:
00067         UpperConvergence(wns::ldk::fun::FUN* _fun,
00068                  const wns::pyconfig::View& _pyco);
00069 
00070         virtual
00071         ~UpperConvergence();
00072 
00073         virtual void
00074         onFUNCreated();
00075 
00076         virtual void
00077         sendData(const wns::service::tl::FlowID& _flowID, const wns::osi::PDUPtr& sdu);
00078 
00079         virtual void
00080         processIncoming(const wns::ldk::CompoundPtr& _compound);
00081 
00082         void
00083         setTLService(Service* _tlService);
00084 
00085     private:
00086         wns::pyconfig::View pyco;
00087 
00088         wns::logger::Logger logger;
00089 
00090         Service* tlService;
00091 
00092         TCPHeader* tcpHeaderFU;
00093 
00094         wns::ldk::CommandReaderInterface* tcpHeaderReader;
00095     };
00096 
00097 } // namespace tcp
00098 
00099 #endif // NOT defined TCP_UPPERCONVERGENCE_HPP

Generated on Sun May 27 03:31:37 2012 for openWNS by  doxygen 1.5.5