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

SYNOPSIS

6          ssize_t
7          mongoc_socket_send (mongoc_socket_t *sock,
8                              const void *buf,
9                              size_t buflen,
10                              int64_t expire_at);
11

PARAMETERS

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

DESCRIPTION

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

RETURNS

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

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.25.1                           Nov 08, 2023            MONGOC_SOCKET_SEND(3)
Impressum