/** * Get the key associating this selector with a given stream * * @param MioStream $stream * @return MioSelectionKey */ public function keyFor($stream) { $s = $stream->getStream(); if (isset($this->key_lookup[$s])) { return $this->key_lookup[$s]; } }