RawSocketOption constructor

const RawSocketOption(int level, int option, Uint8List value)

Creates a RawSocketOption for getRawOption and setRawOption.

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);