1gnutls_record_send(3) gnutls gnutls_record_send(3)
2
3
4
6 gnutls_record_send - sends to the peer the specified data
7
9 #include <gnutls/gnutls.h>
10
11 ssize_t gnutls_record_send(gnutls_session_t session, const void * data,
12 size_t sizeofdata);
13
15 gnutls_session_t session
16 is a gnutls_session_t structure.
17
18 const void * data
19 contains the data to send
20
21 size_t sizeofdata
22 is the length of the data
23
25 This function has the similar semantics with send(). The only differ‐
26 ence is that is accepts a GNUTLS session, and uses different error
27 codes.
28
29 Note that if the send buffer is full, send() will block this function.
30 See the send() documentation for full information. You can replace the
31 default push function by using gnutls_transport_set_ptr2() with a call
32 to send() with a MSG_DONTWAIT flag if blocking is a problem.
33
34 If the EINTR is returned by the internal push function (the default is
35 send()} then GNUTLS_E_INTERRUPTED will be returned. If GNUTLS_E_INTER‐
36 RUPTED or GNUTLS_E_AGAIN is returned, you must call this function
37 again, with the same parameters; alternatively you could provide a NULL
38 pointer for data, and 0 for size. cf. gnutls_record_get_direction().
39
40 Returns the number of bytes sent, or a negative error code. The number
41 of bytes sent might be less than sizeofdata. The maximum number of
42 bytes this function can send in a single call depends on the negotiated
43 maximum record size.
44
46 Report bugs to <bug-gnutls@gnu.org>.
47
49 Copyright © 2006 Free Software Foundation.
50 Permission is granted to make and distribute verbatim copies of this
51 manual provided the copyright notice and this permission notice are
52 preserved on all copies.
53
55 The full documentation for gnutls is maintained as a Texinfo manual.
56 If the info and gnutls programs are properly installed at your site,
57 the command
58
59 info gnutls
60
61 should give you access to the complete manual.
62
63
64
65gnutls 1.6.3 gnutls_record_send(3)