7#ifndef YARP_OS_CONTACT_H
8#define YARP_OS_CONTACT_H
45 Contact(
const std::string& name = std::string(),
46 const std::string& carrier = std::string(),
47 const std::string& hostname = std::string(),
56 Contact(
const std::string& hostname,
66 Contact(
const std::string& carrier,
67 const std::string& hostname,
128 static Contact fromString(
const std::string& txt);
141 std::string getName()
const;
148 void setName(
const std::string& name);
158 std::string getRegName()
const;
170 std::string getHost()
const;
177 void setHost(
const std::string& hostname);
197 void setPort(
int port);
209 std::string getCarrier()
const;
216 void setCarrier(
const std::string& carrier);
245 bool hasTimeout()
const;
252 float getTimeout()
const;
259 void setTimeout(
float timeout);
273 void setSocket(
const std::string& carrier,
274 const std::string& hostname,
287 bool isValid()
const;
313 static std::string convertHostToIp(
const char* name);
317#ifndef DOXYGEN_SHOULD_SKIP_THIS
std::string toString(const T &value)
convert an arbitrary type to string.
A mini-server for performing network communication in the background.
A base class for nested structures that can be searched.
An interface to the operating system, including Port based communication.