mongoc_stream_setsockopt man page

mongoc_stream_setsockopt() — This function is a wrapper around setsockopt() for streams that wrap sockets.

Synopsis

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

Parameters

stream
A mongoc_stream_t
level
The level to pass to setsockopt(3)
optname
The optname to pass to setsockopt(3)
optval
The optval to pass to setsockopt(3)
optlen
The optlen to pass to setsockopt(3)

This function is a wrapper around setsockopt(3) for streams that wrap sockets.

Returns

0 on success, otherwise -1 and errno is set.

Colophon

This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Info

2016‐10‐19 MongoDB C Driver