29 send.
join(call,
true);
30 listen.
join(call,
false);
35 std::string msg = std::string(
"NAME_SERVER query ") + nc.
getNamespace();
37 send.
writeLine(msg.c_str(), (
int)msg.length());
40 for (
int i = 0;
i < 5;
i++) {
48 if (txt.find(
"registration ") == 0) {
85 if (
seeker.getAddress().isValid()) {
86 return seeker.getAddress();
89 for (
int i0 = 0;
i0 < len;
i0++) {
94 for (
int i = 0;
i < len;
i++) {
97 if (
seeker.getAddress().isValid()) {
99 return seeker.getAddress();
A mini-server for performing network communication in the background.
void close() override
Stop port activity.
virtual void writeLine(const char *data, int len)
Write some text followed by a line feed.
static void delaySystem(double seconds)
A stream abstraction for datagram communication.
void interrupt() override
Interrupt the stream.
void close() override
Terminate the stream.
void endPacket() override
Mark the end of a logical packet (see beginPacket).
virtual bool join(const Contact &group, bool sender, const Contact &ipLocal)
void beginPacket() override
Mark the beginning of a logical packet.
void flush() override
Make sure all pending write operations are finished.
bool isOk() const override
Check if the stream is ok or in an error state.
A client for the FallbackNameServer class.
static Contact getAddress()
static Contact extractAddress(const std::string &txt)
Extract an address from its text representation.
Small helper class to help deal with legacy YARP configuration files.
std::string getNamespace(bool refresh=false)
int join(double seconds=-1)
#define yCInfo(component,...)
#define yCError(component,...)
#define yCDebug(component,...)
#define YARP_OS_LOG_COMPONENT(name, name_string)
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.