20 #ifndef CO_BUFFER_CONNECTION_H 21 #define CO_BUFFER_CONNECTION_H 23 #include <co/connection.h> 24 #include <lunchbox/types.h> 30 class BufferConnection;
41 CO_API
virtual ~BufferConnection();
50 CO_API
const lunchbox::Bufferb& getBuffer()
const;
53 CO_API lunchbox::Bufferb& getBuffer();
56 CO_API uint64_t getSize()
const;
61 void readNB(
void*,
const uint64_t)
override { LBDONTCALL; }
62 int64_t
readSync(
void*,
const uint64_t,
const bool)
override 67 CO_API int64_t write(
const void* buffer,
const uint64_t bytes)
override;
77 detail::BufferConnection*
const _impl;
80 typedef lunchbox::RefPtr<BufferConnection> BufferConnectionPtr;
81 typedef lunchbox::RefPtr<const BufferConnection> ConstBufferConnectionPtr;
84 #endif // CO_BUFFER_CONNECTION_H Notifier getNotifier() const override
int64_t readSync(void *, const uint64_t, const bool) override
Finish reading data from the connection.
int Notifier
The Notifier used by the ConnectionSet to detect readiness of a Connection.
Object-oriented network library.
lunchbox::RefPtr< Connection > ConnectionPtr
A reference pointer for Connection pointers.
An interface definition for communication between hosts.
A proxy connection buffering outgoing data into a memory buffer.
void readNB(void *, const uint64_t) override
Start a read operation on the connection.