protected function getName() { if (!isset($this->name) || !$this->name) { $this->name = @stream_socket_get_name($this->socket, true); } return $this->name; }