IBR-DTNSuite  0.8
daemon/src/net/DiscoveryServiceProvider.h
Go to the documentation of this file.
00001 /* 
00002  * File:   DiscoveryServiceProvider.h
00003  * Author: morgenro
00004  *
00005  * Created on 17. November 2009, 17:27
00006  */
00007 
00008 #ifndef _DISCOVERYSERVICEPROVIDER_H
00009 #define _DISCOVERYSERVICEPROVIDER_H
00010 
00011 #include <ibrcommon/net/vinterface.h>
00012 #include <string>
00013 
00014 namespace dtn
00015 {
00016         namespace net
00017         {
00018                 class DiscoveryServiceProvider
00019                 {
00020                 public:
00021                         class NoServiceHereException : public ibrcommon::Exception
00022                         {
00023                         public:
00024                                 NoServiceHereException(string what = "No service available.") throw() : ibrcommon::Exception(what)
00025                                 {
00026                                 };
00027 
00028                                 virtual ~NoServiceHereException() throw() {};
00029                         };
00030 
00036                         virtual void update(const ibrcommon::vinterface &iface, std::string &name, std::string &data)
00037                                 throw(NoServiceHereException) = 0;
00038                 };
00039         }
00040 }
00041 
00042 #endif  /* _DISCOVERYSERVICEPROVIDER_H */
00043