57 void close()
override;
61 uint32_t
read(
void *buffer, uint32_t n)
override = 0;
62 void write(
const void *buffer, uint32_t n)
override = 0;
ConnectionFailedInfo(const char *what)
Definition IDataSocket.h:25
std::string m_what
Definition IDataSocket.h:29
void bind(const NetworkAddress &) override=0
Bind socket to address.
uint32_t read(void *buffer, uint32_t n) override=0
Read from stream.
void flush() override=0
Flush the stream.
virtual void connect(const NetworkAddress &)=0
Connect socket.
void close() override
Close socket.
Definition IDataSocket.cpp:15
virtual bool isFatal() const =0
void write(const void *buffer, uint32_t n) override=0
Write to stream.
void shutdownInput() override=0
Shutdown input.
IDataSocket(const IEventQueue *events)
Definition IDataSocket.h:32
bool isReady() const override=0
Test if read() will succeed.
void shutdownOutput() override=0
Shutdown output.
void * getEventTarget() const override
Get event target.
Definition IDataSocket.cpp:21
uint32_t getSize() const override=0
Get bytes available to read.
Event queue interface.
Definition IEventQueue.h:32
Generic socket interface.
Definition ISocket.h:22
Network address type.
Definition NetworkAddress.h:18
Bidirectional stream interface.
Definition IStream.h:24