readEventsEnabled property

bool readEventsEnabled
getter/setter pair

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

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

Implementation

abstract bool readEventsEnabled;