10.4. File too/DescriptorSet

class too.DescriptorSet

inherits

State supers: State, C

instance too.DescriptorSet

variables

pointer set;

The bitset of descriptors usable to select(2).

int cap;

One beyond the highest descriptor that can be put in the set.

int beyond_last;

One beyond the highest descriptor present in the set.

int num;

The number of descriptors present in the set.

MutableObjectArray descriptors;

The array of Descriptor objects.

MutableObjectArray delegates;

The array of DescriptorDelegate objects.

methods


void
  dealloc;

Deallocate the memory occupied by the set.


id (self)
  init;

Designated initializer.


void
  remove Descriptor descriptor;

Undocumented.


void
  set DescriptorDelegate delegate
   at Descriptor descriptor;

Undocumented.


(pointer, int)
  vitals;

Return a pointer to the low-level descriptor set, and the one beyond the highest value in that set.


void
  readEvent int d;

Dispatch a read event on the file descriptor d, to the delegate at index d in the delegates.


void
  writeEvent int d;

Dispatch a write event on the file descriptor d, to the delegate at index d in the delegates.