Article View: borland.public.cppbuilder.internet.socket
Article #3196Re: packet contatenation
From: Joe Black
Date: Wed, 26 Oct 2005 08:05
Date: Wed, 26 Oct 2005 08:05
28 lines
2141 bytes
2141 bytes
Eugene Mayevski wrote: > 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 > Thanks Eugene, I will have a look at the MsgConnect as you suggested, this app was meant to be a simple thing but the addition of sockets has baked my noodle a bit :-(. Cheers Joe
Technical Details
Message-ID:
<435f376b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<435e5931$1@newsgroups.borland.com> <435e7e79@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 Date: Wed, 26 Oct 2005 09:05:05 +0100 From: Joe Black <nospam@newsgroup.com> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: packet contatenation References: <435e5931$1@newsgroups.borland.com> <435e7e79@newsgroups.borland.com> In-Reply-To: <435e7e79@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.177.44.177 Message-ID: <435f376b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130313579 80.177.44.177 (26 Oct 2005 00:59:39 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail