readEventsEnabled property - RawSocket class - dart:io library (original) (raw)

description

bool readEventsEnabled

getter/setter pair

Set or get, if the RawSocket should listen for RawSocketEvent.readand RawSocketEvent.readClosed events. Default is true.

Warning: setting readEventsEnabled to false might prevent socket from fully closing when SocketDirection.receive andSocketDirection.send directions are shutdown independently. Seeshutdown for more details.

Implementation

abstract bool readEventsEnabled;