4 virtual bool connect()=0;
5 virtual bool accept()=0;
6 virtual ssize_t read(
void *
buf,
size_t size)=0;
7 virtual ssize_t write(
const void *
buf,
size_t size)=0;
8 virtual size_t getPendingSize()=0;
9 virtual bool close()=0;
10 virtual size_t getSizeMax()=0;