Class: KQueue::Watcher::SocketReadWrite
- Inherits:
-
ReadWrite
- Object
- KQueue::Watcher
- ReadWrite
- KQueue::Watcher::SocketReadWrite
- Defined in:
- lib/rb-kqueue/watcher/socket_read_write.rb
Overview
The KQueue::Watcher subclass for events fired when a socket can be read from or written to (which of these is determined by ReadWrite#type). Read events are watched via Queue#watch_socket_for_read, and write events are watched via Queue#watch_socket_for_write.
Note that read and write events for non-socket streams use the ReadWrite class.
Instance Attribute Summary collapse
-
#low_water ⇒ Fixnum?
readonly
The custom low-water mark for the amount of data necessary to trigger an event, or
nil
if none has been set.
Attributes inherited from ReadWrite
Attributes inherited from KQueue::Watcher
Method Summary
Methods inherited from KQueue::Watcher
#add!, #delete!, #disable!, #enable!
Instance Attribute Details
#low_water ⇒ Fixnum? (readonly)
The custom low-water mark for the amount of data necessary
to trigger an event,
or nil
if none has been set.
17 18 19 |
# File 'lib/rb-kqueue/watcher/socket_read_write.rb', line 17 def low_water @low_water end |