How do SO_REUSEADDR and SO_REUSEPORT differ?

前端 未结 2 864
予麋鹿
予麋鹿 2020-11-21 06:30

The man pages and programmer documentations for the socket options SO_REUSEADDR and SO_REUSEPORT are different for different operating

2条回答
  •  礼貌的吻别
    2020-11-21 07:35

    Mecki's answer is absolutly perfect, but it's worth adding that FreeBSD also supports SO_REUSEPORT_LB, which mimics Linux' SO_REUSEPORT behaviour - it balances the load; see setsockopt(2)

提交回复
热议问题