removeStream() 공개 메소드

Remove all listeners for the given stream.
public removeStream ( resource $stream )
$stream resource
예제 #1
0
 /**
  * Close connection and discard not sent data.
  */
 public function close()
 {
     if ($this->closed) {
         return;
     }
     $this->emit('end', [$this]);
     $this->loop->removeStream($this->fd);
     $this->buffer->flushListeners();
     $this->flushListeners();
     unset($this->socket);
     $this->closed = true;
 }
예제 #2
0
 /**
  * @override
  * @inheritDoc
  */
 public function removeStream($stream)
 {
     $this->loop->removeStream($stream);
 }