|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
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);
85 #endif // YARP_SHMEM_SHMEMHYBRIDSTREAM_H
A stream which can be asked to perform bidirectional communication.
void beginPacket() override
Mark the beginning of a logical packet.
void interrupt() override
Interrupt the stream.
A stream abstraction for shared memory communication.
virtual void write(char ch)
Write a single byte to the stream.
Simple specification of the minimum functions needed from output streams.
yarp::os::OutputStream & getOutputStream() override
Get an OutputStream to write to.
const yarp::os::Contact & getLocalAddress() const override
Get the address of the local side of the stream.
bool isOk() const override
Check if the stream is ok or in an error state.
void close() override
Terminate the stream.
void endPacket() override
Mark the end of a logical packet (see beginPacket).
A simple abstraction for a block of bytes.
virtual ~ShmemHybridStream()
void write(const yarp::os::Bytes &b) override
Write a block of bytes to the stream.
void reset() override
Reset the stream.
const yarp::os::Contact & getRemoteAddress() const override
Get the address of the remote side of the stream.
yarp::os::InputStream & getInputStream() override
Get an InputStream to read from.
int open(const yarp::os::Contact &yarp_address, bool sender)