🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3783

Re: how to create XMLDocument from text string

#3783
From: Daniel Stevenson
Date: Wed, 27 Apr 2005 23:34
12 lines
1571 bytes
> You are making a very bad assumption there.  You are assuming that
> ReceiveText() will return all of your XML data in full in a single read.
> Chances are, that is not the case at all.  Very commonly, TCP sockets
break
> up data packets, and also merge multiple packets together.  It is your own
> responsibility to determine where one packet ends and the next one begins,
> and then only parse data when you know you actually have a full packet
> available.

Before I start researching a developing a receive buffer to manage the
delivery of packages, would putting my socket in blocking mode alleviate the
need for me to manage packages?
Technical Details
Message-ID: <4270217c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <426f30b1@newsgroups.borland.com> <426f60d4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,202e5b119b206323
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Daniel Stevenson" <daniel@ocreage.com.au>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <426f30b1@newsgroups.borland.com> <426f60d4$1@newsgroups.borland.com>
Subject: Re: how to create XMLDocument from text string
Date: Thu, 28 Apr 2005 09:34:20 +1000
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 202.174.233.53
Message-ID: <4270217c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114644860 202.174.233.53 (27 Apr 2005 16:34:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail