🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IdUDPClient - OnRead Event

#2503
From: Darl
Date: Tue, 04 Apr 2006 13:11
25 lines
1929 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:4431598b$2@newsgroups.borland.com...
>
> If you need to accept packets asynchronously on the client side, then you
> have to use a separate thread or timer which continously reads.  Do note
> that you can no longer use SendCmd() under this scenerio, though, since
the
> thread/timer will interfer with SendCmd()'s own reading.

Am not using SendCmd on the client side though I use commandhandler on the
server side,
my client send request to the server using WritenLn() and ReadLn.

So will using any Thread/Timer interfer with the WriteLn()/ReadLn()  - I
doubt.
Can you just give a simple code so I can undersatnd better.

How about having two TIdTCPClient on the client, while I use one to send
Request to the Server the Other is in a Thread with constant ReadLn() loop.
and if possible to have one TCPClient bimd to two different port? cand I
read on one port and write on the Other port asynchronously.

Thanks
Darl.
Technical Details
Message-ID: <44326ff8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44311b8a@newsgroups.borland.com> <4431598b$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,112c80b4d484b6b5
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Darl" <Darl@nospam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44311b8a@newsgroups.borland.com> <4431598b$2@newsgroups.borland.com>
Subject: Re: IdUDPClient - OnRead Event
Date: Tue, 4 Apr 2006 14:11:11 +0100
Lines: 27
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
NNTP-Posting-Host: 196.29.217.43
Message-ID: <44326ff8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144156152 196.29.217.43 (4 Apr 2006 06:09:12 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail