MultiCast Messages to multiple clients on the same machine

后端 未结 5 1833
醉话见心
醉话见心 2021-02-14 10:34

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

5条回答
  •  故里飘歌
    2021-02-14 10:44

    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)

提交回复
热议问题