21 #ifndef REMOTEHOST_HPP
22 #define REMOTEHOST_HPP
26 #include <boost/lexical_cast.hpp>
42 int port_num = boost::lexical_cast<
int>(port);
43 return port_num > 0 && port_num < 65535;
45 catch(boost::bad_lexical_cast&)
bool IsValidPort(std::string port)
Definition: SRemoteHost.hpp:38
A container which lists the hostname and and port of a peer.
Definition: SRemoteHost.hpp:52
std::string hostname
Definition: SRemoteHost.hpp:54
std::string port
Remote endpoint hostnames.
Definition: SRemoteHost.hpp:55