[fpc-pascal]Send String via UDP

Andrew Higgs ahiggs at ps.co.za
Mon Jul 9 12:54:43 CEST 2001


Thilo Berger wrote:
> 
> I want to send a simple String via the UDP-Protocol to an unknown number
> of computers on our intranet.
> 
> I've tried some things, but had no success in working with the
> Socket-Unit.
> Is there anyone who can give me an example on how do do it?
> 
> How can I reach all computers (of course with a running
> Client-Application) on the net?
> It is said I have to use 255.255.255.255 as the receiver-adress?!

255.255.255.255 is a netmask. What you require is called broadcast. for a
network address of 192.168.3.0 with a netmask of 255.255.255.0 the brodcast
address is 192.168.3.255

HTH

-- 
Kind regards
Andrew Higgs




More information about the fpc-pascal mailing list