follow-up:
just now i realized that there's no direct way to know which client number (or IP-address) is given to a certain target.
which means that a shorter message meant for a specific client still has to be sent to all.
so it will be only 'cheaper' when there's just one or a few clients needing an update at the same moment.
rolfm@dds.nl schreef op 10-11-2020 13:23:
tcp-server broadcast question
hi,
am i right that when tcp-server does 'broadcast' a message,
actually it will generate as many messages as there are connected clients?
i'm asking this because i have to send a few bytes to a number of tcp-clients frequently,where for each client the data are different.
my idea was to broadcast an overall package, and the clients sift out there specific bytes.
but if tcp-server does indeed multiply the broadcast message, it's probably more efficient /overall 'cheaper' to send a separate message for each client containing only their specific bytes.
rolf