gnutls_record_send − API function


#include <gnutls/gnutls.h>

ssize_t gnutls_record_send(gnutls_session_t session, const void * data, size_t data_size);


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


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().


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.


Report bugs to <>. GnuTLS home page: General help using GNU software:


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.


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

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

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

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

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

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

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

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

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

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

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

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

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

We can't live, work or learn in freedom unless the software we use is free.