This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

tcp broadcast

I am using RL-TCPnet for TCP/IP communication.
Everything works fine, but there is one problem at this time.
The controller is working as a server, so I am sending messages to whoever connects to me.
But once in a while I need to send broadcast messages to the subnet,
i.e. to the IP address x.y.z.255.
Since library function tcp_send only sends messages to the opened socket,
I couldn't find easy way to do it.
I thought about opening another socket as a client with the broadcast address
for this purpose, but this is probably not the best way to do it.

Will appreciate any suggestions.

Gennady

Parents
  • Hans-Bernhard, you are absolutely right.
    What I meant is a possibility to use one of the known tcp protocol extensions for multicasting,
    and there are quite a few of those.
    But seems like implementation of any of those extensions is too complicated at this point and doesn't warrant efforts. And RL-TCPnet doesn't have any provisions for that.
    I'll try to get amount of clients to the minimum (one if possible).

    Thank you

Reply
  • Hans-Bernhard, you are absolutely right.
    What I meant is a possibility to use one of the known tcp protocol extensions for multicasting,
    and there are quite a few of those.
    But seems like implementation of any of those extensions is too complicated at this point and doesn't warrant efforts. And RL-TCPnet doesn't have any provisions for that.
    I'll try to get amount of clients to the minimum (one if possible).

    Thank you

Children
No data