Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: [D7] Broadcasting with UDP?
| Subject: | Re: [D7] Broadcasting with UDP? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 26 Apr 2006 22:18:04 |
"John Doe" <john.doe@acme.com> wrote in message
news:iqi0521iv325sbl71nec246snh749p9g5o@4ax.com...
> I'd like to broadcast a string to all hosts on a LAN using
> Indy's TidUDPClient on a form. I know very little about Indy, so it
> might something very simple but I'm stuck :-/
Any particular reason why you are not using the Broadcast() method?
procedure TForm1.Button1Click(Sender: TObject);
begin
IdUDPClient1.Broadcast('HELLO'#13#10, 1234);
end;
Gambit