gunterhager / UDPBroadcastConnection

Framework to send UDP broadcast messages and listen to responses using a Dispatch source.
MIT License
84 stars 28 forks source link

Best way of dealing with more than one reply message #27

Closed TGDrakaRG closed 3 months ago

TGDrakaRG commented 2 years ago

First of all, thank you for a great functional framework! I was wondering what the best way of dealing with replies from more than one device on the same network. I'm sending a UDP Broadcast on port 10023, and would expect to get more than one reply if there is more than one device on the same network, and port. I'd like to display the results in a table. The device in question replies with quite a bit of information in the response. Will separate replies be received sequentially, but parse correctly? I now that this we be OK if the reply was a struct, but it seems to be three items (IP, port, response). To display these correctly in a table, they would need to arrive in a 'group' - do you know if that would be the case?

Sorry if this is a stupid question!

Regards

John M