10 #ifndef YARP_OS_CONTACT_H
11 #define YARP_OS_CONTACT_H
51 Contact(
const std::string& name = std::string(),
52 const std::string& carrier = std::string(),
53 const std::string& hostname = std::string(),
62 Contact(
const std::string& hostname,
72 Contact(
const std::string& carrier,
73 const std::string& hostname,
134 static Contact fromString(
const std::string& txt);
147 std::string getName()
const;
154 void setName(
const std::string& name);
164 std::string getRegName()
const;
176 std::string getHost()
const;
183 void setHost(
const std::string& hostname);
203 void setPort(
int port);
215 std::string getCarrier()
const;
222 void setCarrier(
const std::string& carrier);
251 bool hasTimeout()
const;
258 float getTimeout()
const;
265 void setTimeout(
float timeout);
279 void setSocket(
const std::string& carrier,
280 const std::string& hostname,
308 std::string toURI(
bool includeCarrier =
true)
const;
319 static std::string convertHostToIp(
const char* name);
323 #ifndef DOXYGEN_SHOULD_SKIP_THIS
327 #endif // DOXYGEN_SHOULD_SKIP_THIS
333 #endif // YARP_OS_CONTACT_H