Get all the default values ​​of the native socket option.

zhaozj2021-02-16  114

Recently written some programs that capture packets on the network, use RawSocket, where you want to use the setSocketoption () prototype: setSocketoption (socketoptionledLevel.ip, socketoptionname.headerincluded, 1); the third parameter why should it be 1? The reason is that the default value is 0, 1 indicates that this option is opened. So what many such options? The answer is: a lot, there are 200 items. So the following code, it can see the default value of each Option when you use socket. I know these, you can have a targeted setsocketoption ().

Details: http://www.cnblogs.com/xpoint/archive/2004/07/10/22962.aspx

转载请注明原文地址:https://www.9cbs.com/read-10371.html

New Post(0)