Article View: borland.public.cppbuilder.internet.socket
Article #2971Re: Reading data from TServerSocket in TClientSocket
From: Maurice Anderson
Date: Sun, 01 Jan 2006 01:23
Date: Sun, 01 Jan 2006 01:23
21 lines
1513 bytes
1513 bytes
Correction: > Here is the relevant code from the server end:
void __fastcall TMyServerThread::ClientExecute(void)
{
.................
while (!Terminated && ClientSocket->Connected)
{
if (pStream->WaitForData(6000))
{
ReadPacket(pStream);
TMemoryStream *Strm2 = new TMemoryStream;
Strm2->Clear();
FileName = "Thank You";
SendTextMessage(Strm2, FileName);
ClientSocket->SendBuf(Strm2->Memory, Strm2->Size);
}
}
}
> Here is the relevant code from the server end:
Technical Details
Message-ID:
<43b72d9d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!gail.ripco.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43b72c70$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,eeddadf8c21d2f02 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Maurice Anderson" <mauriceanderson@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43b72c70$1@newsgroups.borland.com> Subject: Re: Reading data from TServerSocket in TClientSocket Date: Sat, 31 Dec 2005 17:23:54 -0800 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 64.30.203.223 Message-ID: <43b72d9d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1136078237 64.30.203.223 (31 Dec 2005 17:17:17 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!gail.ripco.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail