搬运:SOCKET的level取值(SOL_SOCKET、IPPROTO_IP)

点击中转:level取值说明

The level argument specifies the protocol level at which the option resides. To retrieve options at the socket level, specify the level argument as SOL_SOCKET. To retrieve options at other levels, supply the appropriate protocol number for the protocol controlling the option. For example, to indicate that an option will be interpreted by the TCP (Transport Control Protocol), set level to the protocol number of TCP,

翻译之后如下:

level参数指定选项所在的协议级别。 要在套接字级别检索选项,请将级别参数指定为SOL_SOCKET。 要检索其他级别的选项,请为控制该选项的协议提供适当的协议编号。 例如,要指示选项将由TCP(传输控制协议)解释,请将级别设置为TCP的协议号

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值