gnutls_record_send
NAMESYNOPSIS
ARGUMENTS
DESCRIPTION
RETURNS
REPORTING BUGS
COPYRIGHT
SEE ALSO
NAME
gnutls_record_send − API function
SYNOPSIS
#include <gnutls/gnutls.h>
ssize_t gnutls_record_send(gnutls_session_t session, const void * data, size_t data_size);
ARGUMENTS
gnutls_session_t session
is a gnutls_session_t structure.
const void * data
contains the data to send
size_t data_size
is the length of the data
DESCRIPTION
This function has the similar semantics with send(). The only difference is that it accepts a GnuTLS session, and uses different error codes. Note that if the send buffer is full, send() will block this function. See the send() documentation for full information. You can replace the default push function by using gnutls_transport_set_ptr2() with a call to send() with a MSG_DONTWAIT flag if blocking is a problem. If the EINTR is returned by the internal push function (the default is send()) then GNUTLS_E_INTERRUPTED will be returned. If GNUTLS_E_INTERRUPTED or GNUTLS_E_AGAIN is returned, you must call this function again, with the same parameters; alternatively you could provide a NULL pointer for data, and 0 for size. cf. gnutls_record_get_direction().
RETURNS
The number of bytes sent, or a negative error code. The number of bytes sent might be less than data_size. The maximum number of bytes this function can send in a single call depends on the negotiated maximum record size.
REPORTING BUGS
Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http://www.gnu.org/software/gnutls/ General help using GNU software: http://www.gnu.org/gethelp/
COPYRIGHT
Copyright
© 2008 Free Software Foundation.
Copying and distribution of this file, with or without
modification, are permitted in any medium without royalty
provided the copyright notice and this notice are
preserved.
SEE ALSO
The full documentation for gnutls is maintained as a Texinfo manual. If the info and gnutls programs are properly installed at your site, the command
info gnutls
should give you access to the complete manual.
More Linux Commands
manpages/scr_dump.3ncurses.html
scr_dump(3ncurses) - read (write) a curses screen from (to)
The scr_dump routine dumps the current contents of the virtual screen to the file filename. The scr_restore routine sets the virtual screen to the contents of f
manpages/jpeg2ktopam.1.html
jpeg2ktopam(1) - convert JPEG-2000 code stream to PAM/PNM...
This program is part of Netpbm(1) jpeg2ktopam converts the named JPEG-2000 file (JP2 or JPC), or Standard Input if no file is named, to a PBM, PGM, PPM, or PAM
manpages/if_freenameindex.3.html
if_freenameindex(3) get network interface names and indexes
The if_nameindex() function returns an array of if_nameindex structures, each containing information about one of the network interfaces on the local system. Th
manpages/asn1_decode_simple_der.3.html
asn1_decode_simple_der(3) API function - Linux manual page
Decodes a simple DER encoded type (e.g. a string, which is not constructed). The output is a pointer inside the der . RETURNS ASN1_SUCCESS if successful or an e
manpages/gnuctags.1.html
gnuctags(1) - generate tag file for Emacs, vi (Man Page)....
The etags program is used to create a tag table file, in a format understood by emacs(1); the gnuctags program is used to create a similar table in a format und
manpages/mdoc.1.html
mdoc(1) - Mono documentation management tool (Man Page).....
mdoc is an assembly-based documentation management system. mdoc permits creating and updating documentation stubs based on the contents of an assembly. It does
manpages/cp1251.7.html
cp1251(7) - CP 1251 character set encoded in octal, decimal,
The Windows Code Pages include several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). CP 1251 encodes the characters used in Cyrillic
manpages/XpQueryVersion.3x.html
XpQueryVersion(3x) - Queries an X Server to determine if it
XpQueryVersion determines if the X Print Service Extension is present. A non-zero Status is returned if the extension is supported, otherwise a zero Status is r
manpages/suexec2.8.html
suexec2(8) - Switch user before executing external programs
suexec is used by the Apache HTTP Server to switch to another user before executing CGI programs. In order to achieve this, it must run as root. Since the HTTP
manpages/glFinish.3gl.html
glFinish(3gl) - block until all GL execution is complete....
glFinish does not return until the effects of all previously called GL commands are complete. Such effects include all changes to GL state, all changes to conne
manpages/XvFreeEncodingInfo.3.html
XvFreeEncodingInfo(3) - free encoding information (ManPage)
XvFreeEncodingInfo(3) frees encoding information that was returned by XvQueryEncodings(3). The data structure used for encoding information is defined in the re
manpages/FcLangSetContains.3.html
FcLangSetContains(3) - check langset subset relation........
FcLangSetContains returns FcTrue if ls_a contains every language in ls_b. ls_a will contain a language from ls_b if ls_a has exactly the language, or either the
