how do i delete开发者_运维知识库 the first n bytes of an ostringstream?
I basically have to see howmany bytes went over a socket and if it did not go through fully...i have to delete whatever went through
Just do what you said : remove the first n bytes ?
ostr.str(ostr.str().substr(n))
精彩评论