mongoc_stream_setsockopt()#
Synopsis#
int
mongoc_stream_setsockopt (mongoc_stream_t *stream,
int level,
int optname,
void *optval,
mongoc_socklen_t optlen);
Parameters#
stream
: A mongoc_stream_t.level
: The level to pass tosetsockopt()
.optname
: The optname to pass tosetsockopt()
.optval
: The optval to pass tosetsockopt()
.optlen
: The optlen to pass tosetsockopt()
.
This function is a wrapper around setsockopt()
for streams that wrap sockets.
Returns#
0
on success, otherwise -1
and errno
is set.