Im trying to write a server/service that broadcasts a message on the lan ever second or so, Kind of like a service discovery.
The message needs to be rece
RemObjects has a nice solution for this: ROZeroConf
Before that was available, I made something like that myself with TROBroadcastChannel
of RemObjects SDK (based UDP and Indy).
Inside that component, it calls TIdUDPBase.Broadcast
to send and TIdUDPClient.ReceiveBuffer
to receive responses.
(btw, UDP broadcast only works on the same network/subnet, ROZeroConf is a better solution)