#include <ConnectionParameters.hpp>
Public Member Functions | |
| ControllerInfo () | |
| Empty constructor to set default values (host="" and port=0). | |
| ControllerInfo (const ControllerInfo &ci) | |
| Copy contructor. | |
| ControllerInfo (const std::wstring &host, in_port_t port) | |
| Constructs a Controller info with the given name and port. | |
| ControllerInfo & | operator= (const ControllerInfo &ci) |
| Copy operator. | |
| bool | operator== (const ControllerInfo &ci) const |
| Comparison operator. | |
| bool | operator< (const ControllerInfo &ci) const |
| Utility lesser than operator for ControllerPoolManager For performance purposes, the comparison is done first on host_port, then on host_name. | |
| bool | operator> (const ControllerInfo &ci) const |
| Utility greater than operator for ControllerPoolManager For performance purposes, the comparison is done first on host_port, then on host_name. | |
| std::wstring | getHostName () const |
| Gives the host name. | |
| in_port_t | getHostPort () const |
| Gives the host port. | |
| operator std::wstring () const | |
| Cast to wstring operator to ease printing (for debug/traces). | |
For now a controller is identified by an hostname and a port. TODO: In the future, only its sockaddr should be kept (see CAROB-61)
| CarobNS::ControllerInfo::operator std::wstring | ( | ) | const |
Cast to wstring operator to ease printing (for debug/traces).
1.5.0