7 #ifndef YARP_OS_CONTACT_H
8 #define YARP_OS_CONTACT_H
48 Contact(
const std::string& name = std::string(),
49 const std::string& carrier = std::string(),
50 const std::string& hostname = std::string(),
59 Contact(
const std::string& hostname,
69 Contact(
const std::string& carrier,
70 const std::string& hostname,
131 static Contact fromString(
const std::string& txt);
144 std::string getName()
const;
151 void setName(
const std::string& name);
161 std::string getRegName()
const;
173 std::string getHost()
const;
180 void setHost(
const std::string& hostname);
200 void setPort(
int port);
212 std::string getCarrier()
const;
219 void setCarrier(
const std::string& carrier);
248 bool hasTimeout()
const;
255 float getTimeout()
const;
262 void setTimeout(
float timeout);
276 void setSocket(
const std::string& carrier,
277 const std::string& hostname,
305 std::string toURI(
bool includeCarrier =
true)
const;
316 static std::string convertHostToIp(
const char* name);
320 #ifndef DOXYGEN_SHOULD_SKIP_THIS
A base class for nested structures that can be searched.
std::string toString(const T &value)
convert an arbitrary type to string.
bool isValid()
Check if time is valid (non-zero).
The main, catch-all namespace for YARP.