SYNOPSIS

int
mongoc_stream_setsockopt (mongoc_stream_t *stream,
                          int              level,
                          int              optname,
                          void            *optval,
                          socklen_t        optlen);

DESCRIPTION

The mongoc_stream_setsockopt() function shall set socket options on a mongoc_stream(7). It’s modeled on the API and semantics of setsockopt(2).

Any given stream implementation may or may not implement setsockopt().

RETURN VALUE

The mongoc_stream_setsockopt() function returns zero on success. On error -1 is returned and errno is set appropriately.

ERRORS

Errors are specific to the underlying stream type.

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.