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.
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.