Is broadcasting via TCP possible?

前端 未结 4 1304
逝去的感伤
逝去的感伤 2020-12-16 13:45

I\'m writing a server/client system in C, which uses BSD Sockets under a TCP connection. The server is multi-threaded, with each connection running in its own receptor. Ea

4条回答
  •  粉色の甜心
    2020-12-16 13:58

    Your SendToAll() will need to iterate through all open sockets and write the data to each one independently.

    Broadcast and multicast are limited to UDP sockets only.

提交回复
热议问题