52 using size_type = std::size_t ;
53 using ssize_type = ssize_t ;
55 virtual ssize_type
read(
char * buffer , size_type buffer_length ) = 0 ;
60 virtual ssize_type
write(
const char * buf , size_type len ) = 0 ;
73 virtual SOCKET
fd() const noexcept = 0 ;
An abstract interface for reading and writing from a non-blocking i/o channel.
virtual ssize_type write(const char *buf, size_type len)=0
Sends data.
virtual bool eWouldBlock() const =0
See read() and write().
virtual ssize_type read(char *buffer, size_type buffer_length)=0
Reads data.
virtual SOCKET fd() const noexcept=0
Returns the file descriptor.