SYNOPSIS

#include <bson.h>

void
bson_reader_set_read_func (bson_reader_t          *reader,
                           bson_reader_read_func_t func);

DESCRIPTION

The bson_reader_set_read_func() function provides the caller the ability to change the function used to read from an underlying socket. The system read() function is used by default. This is only used when working with an underlying file-descriptor.

AUTHORS

This page was written by MongoDB, Inc.