private function buildConnection()
    {
        $connection = stream_socket_client("tcp://{$this->host}:{$this->port}", $errno, $message);
        $success    = fread($connection, 26);

        if (false === $connection || false === $success) {
            throw new \UnexpectedValueException("Failed to connect: $message");
        }

        return $connection;
    }