setOption method - Socket class - dart:io library (original) (raw)
setOption abstract method
bool setOption(
- SocketOption option,
- bool enabled )
Customizes the RawSocket.
See SocketOption for available options.
Returns true
if the option was set successfully, false otherwise.
Throws a SocketException if the socket has been destroyed or upgraded to a secure socket.
Implementation
bool setOption(SocketOption option, bool enabled);