IBR-DTNSuite  0.8
daemon/src/api/ManagementConnection.h
Go to the documentation of this file.
00001 /*
00002  * ManagementConnection.h
00003  *
00004  *  Created on: 13.10.2011
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef MANAGEMENTCONNECTION_H_
00009 #define MANAGEMENTCONNECTION_H_
00010 
00011 #include "api/ClientHandler.h"
00012 
00013 namespace dtn
00014 {
00015         namespace api
00016         {
00017                 class ManagementConnection : public ProtocolHandler
00018                 {
00019                 public:
00020                         ManagementConnection(ClientHandler &client, ibrcommon::tcpstream &stream);
00021                         virtual ~ManagementConnection();
00022 
00023                         void run();
00024                         void finally();
00025                         void setup();
00026                         void __cancellation();
00027 
00028                 private:
00029                         void processCommand(const std::vector<std::string> &cmd);
00030                 };
00031         } /* namespace api */
00032 } /* namespace dtn */
00033 #endif /* MANAGEMENTCONNECTION_H_ */