10 #ifndef YARP_SHMEM_SHMEMHYBRIDSTREAM_H
11 #define YARP_SHMEM_SHMEMHYBRIDSTREAM_H
36 void close()
override;
48 bool isOk()
const override;
50 void reset()
override;
75 ACE_SOCK_Stream m_SockStream;
76 ACE_SOCK_Acceptor m_Acceptor;
82 int connect(
const ACE_INET_Addr& ace_address);
A stream abstraction for shared memory communication.
void write(const yarp::os::Bytes &b) override
Write a block of bytes to the stream.
void reset() override
Reset the stream.
yarp::os::OutputStream & getOutputStream() override
Get an OutputStream to write to.
void interrupt() override
Interrupt the stream.
virtual ~ShmemHybridStream()
int open(const yarp::os::Contact &yarp_address, bool sender)
bool isOk() const override
Check if the stream is ok or in an error state.
const yarp::os::Contact & getRemoteAddress() const override
Get the address of the remote side of the stream.
void beginPacket() override
Mark the beginning of a logical packet.
const yarp::os::Contact & getLocalAddress() const override
Get the address of the local side of the stream.
void endPacket() override
Mark the end of a logical packet (see beginPacket).
yarp::os::InputStream & getInputStream() override
Get an InputStream to read from.
void close() override
Terminate the stream.
A simple abstraction for a block of bytes.
Simple specification of the minimum functions needed from output streams.
virtual void write(char ch)
Write a single byte to the stream.
A stream which can be asked to perform bidirectional communication.