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 it 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
41 the number of bytes sent, or a negative error code. The number of
42 bytes sent might be less than sizeofdata. The maximum number of bytes
43 this function can send in a single call depends on the negotiated maxi‐
44 mum record size.
45
47 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
48 http://www.gnu.org/software/gnutls/ General help using GNU software:
49 http://www.gnu.org/gethelp/
50
52 Copyright © 2008 Free Software Foundation.
53 Copying and distribution of this file, with or without modification,
54 are permitted in any medium without royalty provided the copyright
55 notice and this notice are preserved.
56
58 The full documentation for gnutls is maintained as a Texinfo manual.
59 If the info and gnutls programs are properly installed at your site,
60 the command
61
62 info gnutls
63
64 should give you access to the complete manual.
65
66
67
68gnutls 2.8.6 gnutls_record_send(3)