7 #ifndef YARP_OS_IMPL_PROTOCOL_H
8 #define YARP_OS_IMPL_PROTOCOL_H
45 void setRoute(
const Route& route)
override;
46 const Route& getRoute()
const override;
50 bool checkStreams()
const override;
52 std::string getSenderSpecifier()
const override;
53 const std::string& getEnvelope()
const override;
54 void setRemainingLength(
int len)
override;
60 bool open(
const std::string& name)
override;
61 void close()
override;
62 void interrupt()
override;
68 void endRead()
override;
69 void suppressReply()
override;
70 bool setTimeout(
double timeout)
override;
71 void setEnvelope(
const std::string& str)
override;
74 bool isReplying()
const override;
78 bool open(
const Route& route)
override;
80 bool isOk()
const override;
83 void beginWrite()
override;
100 bool getRecvDelegate();
106 bool getSendDelegate();
112 bool expectProtocolSpecifier();
117 bool expectSenderSpecifier();
131 void setCarrier(
const std::string& carrierNameBase);
142 bool expectReplyToHeader();
148 bool respondToHeader();
164 bool respondToIndex();
190 bool need_recv_delegate;
191 bool need_send_delegate;
192 bool recv_delegate_fail;
193 bool send_delegate_fail;
198 std::string envelope;
A base class for connection types (tcp, mcast, shmem, ...) which are called carriers in YARP.
An interface for reading from a network connection.
The basic state of a connection - route, streams in use, etc.
A controller for an individual connection.
The output side of an active connection between two ports.
Simple specification of the minimum functions needed from output streams.
This is a base class for objects that can be both read from and be written to the YARP network.
Information about a connection between two ports.
A container for a stream, allowing the stream implementation to be replaced when needed.
Minimal requirements for an efficient Writer.
A stream which can be asked to perform bidirectional communication.
Connection choreographer.
void willReply()
Promise that we'll be making a reply.
Lets Readable objects read from the underlying InputStream associated with the connection between two...
int rename(const char *oldname, const char *newname)
Portable wrapper for the rename() function.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.