🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem separating messages...

#1909
From: Josh Arnold
Date: Thu, 28 Sep 2006 17:31
17 lines
1532 bytes
Now that I have my sockets "working" I have the following problem.

I send a short message (all ASCII) to the server (an emdedded device in this
case). The server receives the message from my application and then
formulates a response.

I send a lot of these short messages rapidly.

The problem is that when my application receives the responses they are all
lumped together in a single message.  This makes it impossible to parse.

What is the trick to getting the OnRead event to fire onece for each
message?  Does the response from the server need to be terminated with a
special character?

Thanks in advance,
Josh
Technical Details
Message-ID: <451c0548$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b4e1115fa22e636b,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Josh Arnold" <jarnold@atterotech.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Problem separating messages...
Date: Thu, 28 Sep 2006 13:31:52 -0400
Lines: 19
Organization: AtteroTech
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 70.89.2.105
Message-ID: <451c0548$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1159464264 70.89.2.105 (28 Sep 2006 10:24:24 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail