1MONGOC_SOCKET_SEND(3)              libmongoc             MONGOC_SOCKET_SEND(3)
2
3
4

NAME

6       mongoc_socket_send - mongoc_socket_send()
7

SYNOPSIS

9          ssize_t
10          mongoc_socket_send (mongoc_socket_t *sock,
11                              const void *buf,
12                              size_t buflen,
13                              int64_t expire_at);
14

PARAMETERS

16       · sock: A mongoc_socket_t.
17
18       · buf: A buffer to send.
19
20       · buflen: A size_t with the number of bytes in buf.
21
22       · expire_at: A int64_t with an absolute timeout for the operation or 0.
23         The timeout is in monotonic time using microseconds. You can retrieve
24         the current monotonic time with System Clock.
25

DESCRIPTION

27       Sends buflen bytes in buf to the destination. If a timeout expired, the
28       number of bytes sent will be returned or -1 if no bytes were sent.
29

RETURNS

31       -1 on failure and errno is set, or the number of bytes sent.
32

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.17.4                           Feb 04, 2021            MONGOC_SOCKET_SEND(3)
Impressum