Creates a RawSocketOption for getRawOption andSetRawOption.
All arguments are required and must not be null.
The level and option arguments correspond to level and optname arguments on the get/setsockopt native calls.
The value argument and its length correspond to the optval and length arguments on the native call.
For a getRawOption
call, the value parameter will be updated after a successful call (although its length will not be changed).
For a setRawOption
call, the value parameter will be used set the option.
const RawSocketOption(this.level, this.option, this.value);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/RawSocketOption/RawSocketOption.html