tags:

views:

40

answers:

1

Hi,

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

A: 

Just do what you said : remove the first n bytes ?

ostr.str(ostr.str().substr(n))
BatchyX