Article View: borland.public.cppbuilder.internet.socket
Article #2501IdUDPClient - OnRead Event
From: Darl
Date: Mon, 03 Apr 2006 12:58
Date: Mon, 03 Apr 2006 12:58
27 lines
1975 bytes
1975 bytes
Hi All, I have an Indy 9 client/server project. On the Server i have IdTCPServer and IdUDPServer On the Client i have IdTCPClient and IdUDPClient on the client I used the UDPclient to locate the server via boradcast, when i get a response from the servers' UDPServer I then use the Clients TCPClient to connect to the TCPServer. Everything was working great, now, am about to add some functions on the server to enable me control the client ie asking the client to log off the current user on the client. I then discovered that UDPClient dont have OnRead event, and TCPClient does not have OnCommandHandler or OnExecute. My Question: How can I send data from UDPServer or TCPSever to UDPClient or TCPClient if the client is not waiting for it (ie no Read Method is pending); I perfer UDPClient so that I can send the command using boradcast when all client is affected. NB: I did change my UDPClient on the client App to UDPServer, so I can use the OnRead event but the Client App became unperdictable as to connecting to the Server
Technical Details
Message-ID:
<44311b8a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,112c80b4d484b6b5,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Darl" <Darl@nospam.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: IdUDPClient - OnRead Event Date: Mon, 3 Apr 2006 13:58:16 +0100 Lines: 29 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: <44311b8a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144069002 196.29.217.43 (3 Apr 2006 05:56:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail