GComm  0.2.3
common.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Codership Oy <info@codership.com>
3  */
4 
11 #ifndef GCOMM_COMMON_HPP
12 #define GCOMM_COMMON_HPP
13 
14 #if defined(HAVE_COMMON_H)
15 #include <common.h>
16 #endif
17 
18 #include <string>
19 
20 namespace gcomm
21 {
22 #if defined(HAVE_COMMON_H)
23  static std::string const TCP_SCHEME(COMMON_TCP_SCHEME);
24  static std::string const UDP_SCHEME(COMMON_UDP_SCHEME);
25  static std::string const SSL_SCHEME(COMMON_SSL_SCHEME);
26 
27  static std::string const BASE_PORT_KEY(COMMON_BASE_PORT_KEY);
28  static std::string const BASE_PORT_DEFAULT(COMMON_BASE_PORT_DEFAULT);
29 #else
30  static std::string const TCP_SCHEME("tcp");
31  static std::string const UDP_SCHEME("udp");
32  static std::string const SSL_SCHEME("ssl");
33 
34  static std::string const BASE_PORT_KEY("base_port");
35  static std::string const BASE_PORT_DEFAULT("4567");
36 #endif
37 }
38 
39 #endif /* GCOMM_COMMON_HPP */