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 type.
- const void * data
contains the data to send
- size_t data_size
is the length of the data
Description
This, or provide a NULL pointer for data and 0 for data_size , in order to write the same data as before. If you wish to discard the previous data instead of retrying, you must call gnutls_record_discard_queued() before calling this function with different parameters.
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.