🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TCP TServer- and TClientSocket

#1678
From: Remy Lebeau (TeamB)
Date: Fri, 17 Nov 2006 21:43
20 lines
1846 bytes
"Kresten Tolstrup" <kt@danphone.com> wrote in message
news:455e2228$1@newsgroups.borland.com...

> Here is the code, it is in the ClientSocketRead metode. The received
> message is stored in the queue conStoredRxMsg. When the message
> is sent the SendText is just called.

Please show ALL of the reading/writing code.  Again, I STRONGLY discourage
the use of SendText() and ReceiveText().  Also, if you are at liberty to
make changes to your protocol, then I STRONGLY encourage you to send the
string length along with the string data.  That way, the receive can
determine ahead of time exactly how many bytes to read.

Please go to http://www.deja.com and search through the newsgroup archives.
This topic has been discussed in detail MANY MANY times before, with full
code samples provided.


Gambit
Technical Details
Message-ID: <455e2e94@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <455d6ba5$1@newsgroups.borland.com> <455d71f5$1@newsgroups.borland.com> <455e2228$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a552fcaaf39b63f9
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <455d6ba5$1@newsgroups.borland.com> <455d71f5$1@newsgroups.borland.com> <455e2228$1@newsgroups.borland.com>
Subject: Re: TCP TServer- and TClientSocket
Date: Fri, 17 Nov 2006 13:43:57 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <455e2e94@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1163800212 69.169.4.232 (17 Nov 2006 13:50:12 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail