new api of stream ; void read(), void write(), size_t readSome()