🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: packet contatenation

#3187
From: Eugene Mayevski
Date: Tue, 25 Oct 2005 18:52
18 lines
1916 bytes
Hello!
You wrote  on Tue, 25 Oct 2005 17:17:37 +0100:

 JB> I have a client/server set of apps, the client uses a TClientSocket and
 JB> the server the TServerSocket, all works great data sent back and
 JB> forward fine, apart from one or two places. The problem seems to be
 JB> when I send several packets straight after each other, the packets are
 JB> all sent within a thread that activates every 35 ms and it sends one
 JB> packet at a time.

The problem is that TCP is not packet-oriented, but stream-oriented. If you
call send() 2 times, this doesn't mean that there will be 2 TCP packets on
the other end. There can be anything between 1 and 20 (or more) TCP packets.
If you want message-based communication, you can use, for example,
MsgConnect (http://www.eldos.com/msgconnect/)

With best regards,
Eugene Mayevski
Technical Details
Message-ID: <435e7e79@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <435e5931$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,de4e39df019561af
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Eugene Mayevski" <mayevski@eldos.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <435e5931$1@newsgroups.borland.com>
Subject: Re: packet contatenation
Date: Tue, 25 Oct 2005 21:52:22 +0300
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
X-Comment-To: Joe Black
NNTP-Posting-Host: 82.144.202.141
Message-ID: <435e7e79@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1130266233 82.144.202.141 (25 Oct 2005 11:50:33 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail