Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
node.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "machine.hh"
4 #include "../common/context_singleton.hh"
5 #include "../messages/message.hh"
6 #include "../network/client_handler.hh"
7 
8 #include <map>
9 #include <memory>
10 #include <boost/asio.hpp>
11 
12 namespace eclipse {
13 
14 class Node: public Machine {
15  public:
16  Node();
17  ~Node();
18 
19  std::string get_ip () const override;
20 
21  protected:
24  std::string ip_of_this;
25  int port;
26 };
27 
28 } /* nodes */
Definition: logger.hh:20
Definition: node.hh:14
Node()
Definition: node.cc:13
std::string get_ip() const override
Definition: node.cc:23
Logger * logger
Definition: node.hh:23
int port
Definition: node.hh:25
std::string ip_of_this
Definition: node.hh:24
Definition: client_handler.hh:12
Definition: machine.hh:8
network::ClientHandler * network
Definition: node.hh:22
~Node()
Definition: node.cc:20