Are socket options inherited across accept() from the listening socket?

后端 未结 4 450
北恋
北恋 2020-12-24 11:46

Suppose the listening socket passed to accept has non-default options set on it with setsockopt. Are these options (some or all of them?) inherited

4条回答
  •  太阳男子
    2020-12-24 12:25

    Socket options is the place where things go that don't fit elsewhere. So, it's expected for different socket options to have different inheriting behaviour. Whether to inherit or not a socket option is decided on a case by case basis.

提交回复
热议问题