1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_ia_send" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_ia_send \- API function
6 .B #include <gnutls/extra.h>
8 .BI "ssize_t gnutls_ia_send(gnutls_session_t " session ", const char * " data ", size_t " sizeofdata ");"
10 .IP "gnutls_session_t session" 12
11 is a \fBgnutls_session_t\fP structure.
12 .IP "const char * data" 12
13 contains the data to send
14 .IP "size_t sizeofdata" 12
15 is the length of the data
17 Send TLS/IA application payload data. This function has the
18 similar semantics with \fBsend()\fP. The only difference is that it
19 accepts a GnuTLS session, and uses different error codes.
21 The TLS/IA protocol is synchronous, so you cannot send more than
22 one packet at a time. The client always send the first packet.
24 To finish an application phase in the server, use
25 \fBgnutls_ia_endphase_send()\fP. The client cannot end an application
26 phase unilaterally; rather, a client is required to respond with an
27 endphase of its own if gnutls_ia_recv indicates that the server has
30 If the EINTR is returned by the internal push function (the default
31 is \fBsend()\fP} then \fBGNUTLS_E_INTERRUPTED\fP will be returned. If
32 \fBGNUTLS_E_INTERRUPTED\fP or \fBGNUTLS_E_AGAIN\fP is returned, you must call
33 this function again, with the same parameters; alternatively you
34 could provide a \fBNULL\fP pointer for data, and 0 for size.
36 The number of bytes sent, or a negative error code.
38 Report bugs to <bug-gnutls@gnu.org>.
39 GnuTLS home page: http://www.gnu.org/software/gnutls/
40 General help using GNU software: http://www.gnu.org/gethelp/
42 Copyright \(co 2008 Free Software Foundation.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
48 The full documentation for
50 is maintained as a Texinfo manual. If the
54 programs are properly installed at your site, the command
58 should give you access to the complete manual.