🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Indy TCP Server/Client handshake

#2851
From: Binzhong Zhou
Date: Wed, 25 Jan 2006 08:09
22 lines
2158 bytes
Hi All,

I am a newbie for network programming. After I got the Indy9.0.50 work under 
my BCB6, I am ready to play around its function. I have made an simple TCP 
server/client code based on the BCB Indy example. I can send an command to 
the server to request a particular data and I can get response back from the 
server for the requested data. (WriteLn <sending command to server> & ReadLn 
<read data from server> are successively followed). I am very impressed that 
I can so quickly to do so. For small data set transfer, you may be able to 
get response immediately from the server. But what will happen if the 
requested data will not be transfered immediately from the server due the 
data need to be fetched from somewhere else on the server or the data is too 
big for instantaneous transfer? What is the best mechanism to handle this 
situation? Likewise, the server will similar issue from the client site if 
the server request data from the Client. The event handlings from the Indy 
TCP Client/Server do not give me much suggestions how to handle the 
situation.

Any suggestions even some snips are much appreciated.

Regards,
        Binzhonbg 
Technical Details
Message-ID: <43d73188@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,69ab3e9e4dbdbb9f,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Binzhong Zhou" <Binzhong.Zhou@csiro.au>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Indy TCP Server/Client handshake 
Date: Wed, 25 Jan 2006 18:09:31 +1000
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 140.253.20.110
Message-ID: <43d73188@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138176392 140.253.20.110 (25 Jan 2006 00:06:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail