Expanding strstreambuf

  • Thread starter Thread starter Mihajlo Cvetanovic
  • Start date Start date
M

Mihajlo Cvetanovic

Hi all,

I'm writing a winsock app and I want to recv bytes in C++ way. How can
I expand (grow) strstreambuf once it's created? Is there a better
class instead of strstreambuf?

Now I have a CBuffer class with a char* dynamic buffer, the size of
the buffer and the length of useful data in the buffer. It has all I
need, but why "reinventing the wheel" if it's already available...

I should be able to pass a char* from the end of useful data in the
buffer (presumably strstreambuf) to recv function which would populate
the buffer with received data. Received data may contain null chars.

TIA.
 
Mihajlo said:
I'm writing a winsock app and I want to recv bytes in C++ way. How can I
expand (grow) strstreambuf once it's created? Is there a better class
instead of strstreambuf?

Any answer, anyone? Please? Pretty please - with sugar on top?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top