Article View: borland.public.cppbuilder.internet.socket
Article #1161Re: UDP socket
From: Remy Lebeau (TeamB)
Date: Tue, 10 Apr 2007 17:02
Date: Tue, 10 Apr 2007 17:02
24 lines
1942 bytes
1942 bytes
"Kresten Tolstrup" <kt@danphone.com> wrote in message news:461b577e$1@newsgroups.borland.com... > I have now used the Indy components, and it is working, but > isn't there any callback function in the client class, like the > IdUDPServerUDPRead function in the server class No, there is not. But you can use TIdUDPServer for both a client and a server, as it has all of the same writing methods that TIdUDPClient has. The only difference between TIdUDPClient and TIdUDPServer is that the former exposes Host and Port properties, which you don't really need, and the latter allows listening on multiple local IP/Port pairs, which you only need 1 of on the client side. Otherwise, they are both the same, as they both derive from TIdUDPBase, which implements most of the work equally between them. > do I have to poll the client class to see if it has received anything? Yes, you would. Gambit
Technical Details
Message-ID:
<461bc332$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4609120b$1@newsgroups.borland.com> <460c3411$1@newsgroups.borland.com> <461b577e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,eda79d322010114f 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: <4609120b$1@newsgroups.borland.com> <460c3411$1@newsgroups.borland.com> <461b577e$1@newsgroups.borland.com> Subject: Re: UDP socket Date: Tue, 10 Apr 2007 10:02:39 -0700 Lines: 26 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: 75.83.34.171 Message-ID: <461bc332$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1176224562 75.83.34.171 (10 Apr 2007 10:02:42 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail