474,029 Members | 3,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Expanding strstreambuf

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 "reinventin g 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.

Nov 16 '05 #1
1 931
Mihajlo Cvetanovic wrote:
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?

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6153
by: Jeffrey Kilpatrick | last post by:
I have a SQL 6.5 database that we parse some data into everyday using an access program. All this was devises and setup by a programmer that I can't get in contact with anymore and it has actually run for about five years without a hickup! But just a few days ago our parsing program just stops dead before completing and I did get this error message. "exportaLLdataToSQLifnoerror(): number 3146 Description- odbd- call failed. Can't...
4
10235
by: David | last post by:
It's sad to say, but when using the AOL web site, like to send an email, they have a nifty capability such that when a window is resized, the textarea where the message is input expands not only horizontally, but also vertically, to fill the space. I took a look at their javascripts, but they are quite complex and convoluted since they make use of many of their own functions designed to work with their web site. Does anybody have a...
3
3548
by: Rajwarya | last post by:
Hi ppl, I am trying to run a code on SUN OS 5.8 and using Sun WorkShop 6 update 2 C++ 5.3. The problem is that the code is leaking memory in strstreambuf. We are using ostrstream with rdbuf()->freeze(0) but still its bleading. I am pasting the purify output below. Please let me know how to get rid of this. Also we are using latest patch release for libCstd.so.1 i.e Sun C++ 5.6 Patch 108434-17 DEV
4
2702
by: erikd | last post by:
I'm using an expanding tree menu based on the design from Dieter Bungers GMD (www.gmd.de) and infovation (www.infovation.de) named displayToc.js. The problem is that the script isn't working properly in Firefox, although it's working without problems in IE 5.5 & 6.0 In Firefox any file which isn't in the same directory isn't found, so the images are missing and the links don't launch. It may be something simple, but I don't have the...
2
1755
by: weston | last post by:
So, I'm attempting to code an expanding tree menu, based off of unordered lists containing unordered lists. I'm also trying to do it in such a way that none of the javascript has to go inline with the markup: http://weston.canncentral.org/misc/webgallery/FMH/template.html So far, so good. It seems to work in Gecko-based browsers rather well (mouse-over "Online Services" to see it work).
1
2220
by: Bhiksha Raj | last post by:
Hi, I created an expanding menu on one of the frames in my webpage using code I got from http://www.dynamicdrive.com/dynamicindex1/navigate1.htm I have embedded the code (with minor modification to point to my links) into a frame on my webpage. The problem is that when I open the page on netscape 7,
1
2180
by: Kenneth Porter | last post by:
I need to work on some code with a terrifying number of ifdefs. According to the comp.lang.c FAQ, the programs scpp, unifdef, and rmifdef can selectively expand ifdef's and evaluate macro definitions without expanding the macros in code. I've found some ancient source for scpp but it's unmaintained and doesn't build with a modern flex and yacc. unifdef appears not to parse macro values and expressions and doesn't do anything with regular...
6
7422
by: Jack | last post by:
Hello, I would like some advice on how to disable the behavior of treeviews to expand and collapse when double clicked upon, but still allow the user to use the plus and minus on each node. Thanks in advance! Jack
13
2789
Chrisjc
by: Chrisjc | last post by:
I am in need of an expanding and collapsing code… The goal is To be able to click a PICTURE IMAGE and expand to show information Reason for this is I have 3 TABLES of information of about 400x200… that I want to be able to expand to how much information I put in them…. Just need a code that will cut it off and then OPEN it… So
0
10512
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10313
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
12093
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10270
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7822
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5374
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.