public function receive(&$buffer, $length, $flags)
    {
        return static::exceptionOnFalse(
            $this->resource,
            function ($resource) use (&$buffer, $length, $flags) {
                return @socket_recv($resource, $buffer, $length, $flags);
            }
        );
    }