Why do we need SocketOptions.SO_BROADCAST to enable broadcast?

后端 未结 2 1164
春和景丽
春和景丽 2021-01-03 22:29

If we want to broadcast information from a socket, we need to enable SocketOptions.SO_BROADCAST. However, I don\'t understand why that is necessary.

My

2条回答
  •  猫巷女王i
    2021-01-03 23:22

    In most cases these calls just call the same thing in the OS. This is likely to be a restriction of your OS, not Java.

提交回复
热议问题