Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Nov : UDP Broadcast

www.cryer.info
Managed Newsgroup Archive

UDP Broadcast

Subject:UDP Broadcast
Posted by:"Brian" (t4800..@hotmail.com)
Date:Sat, 5 Nov 2005 12:53:45

Apologies if this question has been asked frequently, but I can't find the
answer...

How can I receive a UDP broadcast?  I am using the idUDPclient on one
machine to send a broadcast (since I don't know the IP of the machine I want
to talk to beforehand), and I assumed the idUDPserver would receive the
broadcast.  However, either I have installed Indy incorrectly or something
else is amuck, but it is very frustrating: If I create an OnUDPRead event
handler for the UDP server and try to compile, it creates this line:

procedure IdUDPServer1UDPRead(Sender: TObject; AData: TBytes;
      ABinding: TIdSocketHandle);

and flags it as "Undeclared identifier: TBytes" !!

I cannot find any instance of "TBytes" in any file in the whole Delphi5 file
tree (including Indy files).  Indy never seems to work on the first try, it
always requires a bit of wrestling with it...

Thank you for any help

Replies:

www.cryer.info
Managed Newsgroup Archive