socket.php
public function close()
    {
        if (!$this->is_open) {
            return false;
        }
        $this->is_open = false;

        return fclose($this->handle);
    }
public function close()
    {
        if (!$this->is_open) {
            return false;
        }
        $this->is_open = false;

        return fclose($this->handle);
    }
Closes the socket preventing further reads. Cannot be reopened once closed.

@return bool           True if successful.