Class: KQueue::Watcher::SocketReadWrite

Inherits:
ReadWrite show all
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

Attributes inherited from ReadWrite

#fd, #io, #type

Attributes inherited from KQueue::Watcher

#queue

Method Summary

Methods inherited from KQueue::Watcher

#add!, #delete!, #disable!, #enable!

Instance Attribute Details

#low_waterFixnum? (readonly)

The custom low-water mark for the amount of data necessary to trigger an event, or nil if none has been set.

Returns:

  • (Fixnum, nil)


17
18
19
# File 'lib/rb-kqueue/watcher/socket_read_write.rb', line 17

def low_water
  @low_water
end