User Manual, Developers Guide and API Documentation

IpBinding.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 CONSTANZE_IPBINDING_HPP
00029 #define CONSTANZE_IPBINDING_HPP
00030 
00031 #include <CONSTANZE/Binding.hpp>
00032 #include <CONSTANZE/Listener.hpp>
00033 #include <CONSTANZE/Generator.hpp>
00034 
00035 #include <WNS/service/nl/Service.hpp>
00036 #include <WNS/service/nl/DataHandler.hpp>
00037 #include <WNS/node/component/Component.hpp>
00038 #include <WNS/logger/Logger.hpp>
00039 
00040 namespace constanze
00041 {
00042     class IpBinding:
00043         public constanze::Binding
00044     {
00045     public:
00046         IpBinding(const wns::pyconfig::View& _pyco);
00047 
00048         virtual ~IpBinding();
00049 
00050         // from Binding
00051         virtual void
00052         registerComponent(wns::node::component::Component* _component);
00053 
00054         virtual void
00055         sendData(const wns::osi::PDUPtr& _data);
00056 
00057         virtual void
00058         initBinding(constanze::StartTrigger* startTrigger);
00059 
00060         virtual void
00061         releaseBinding(constanze::StopTrigger* stopTrigger);
00062 
00063         void
00064         registerListener(constanze::Listener* _listener);
00065 
00066     protected:
00067         wns::node::component::Component* component;
00068 
00072         wns::pyconfig::View pyco;
00073 
00074         wns::service::nl::Service* ipDataTransmission;
00075 
00076         wns::service::nl::DNSService* dns;
00077         wns::service::nl::FQDN sourceDomainName;
00078         wns::service::nl::FQDN destinationDomainName;
00079 
00080         virtual std::string printAddress() const;
00081 
00085         wns::logger::Logger log;
00086     };
00087 }
00088 
00089 #endif

Generated on Thu May 24 03:32:15 2012 for openWNS by  doxygen 1.5.5