10 #ifndef YARP_OS_IMPL_PROTOCOL_H
11 #define YARP_OS_IMPL_PROTOCOL_H
48 void setRoute(
const Route& route)
override;
49 const Route& getRoute()
const override;
53 bool checkStreams()
const override;
55 std::string getSenderSpecifier()
const override;
56 const std::string& getEnvelope()
const override;
57 void setRemainingLength(
int len)
override;
63 bool open(
const std::string& name)
override;
64 void close()
override;
65 void interrupt()
override;
71 void endRead()
override;
72 void suppressReply()
override;
73 bool setTimeout(
double timeout)
override;
74 void setEnvelope(
const std::string& str)
override;
77 bool isReplying()
const override;
81 bool open(
const Route& route)
override;
83 bool isOk()
const override;
86 void beginWrite()
override;
103 bool getRecvDelegate();
109 bool getSendDelegate();
115 bool expectProtocolSpecifier();
120 bool expectSenderSpecifier();
134 void setCarrier(
const std::string& carrierNameBase);
145 bool expectReplyToHeader();
151 bool respondToHeader();
167 bool respondToIndex();
193 bool need_recv_delegate;
194 bool need_send_delegate;
195 bool recv_delegate_fail;
196 bool send_delegate_fail;
201 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.