1gnutls_transport_set_push_function(3)gnutlsgnutls_transport_set_push_function(3)
2
3
4

NAME

6       gnutls_transport_set_push_function - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void    gnutls_transport_set_push_function(gnutls_session_t    session,
12       gnutls_push_func push_func);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       gnutls_push_func push_func
19                   a callback function similar to write()
20

DESCRIPTION

22       This is the function where you set a push function for gnutls to use in
23       order  to  send  data.  If you are going to use berkeley style sockets,
24       you do not need to use this function since  the  default  send(2)  will
25       probably  be ok.  Otherwise you should specify this function for gnutls
26       to be able to send data.  The callback should return a positive  number
27       indicating the bytes sent, and -1 on error.
28
29        push_func  is  of  the form, ssize_t (*gnutls_push_func)(gnutls_trans‐
30       port_ptr_t, const void*, size_t);
31

REPORTING BUGS

33       Report bugs to <bugs@gnutls.org>.
34       Home page: http://www.gnutls.org
35
36
38       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
39       Copying and distribution of this file, with  or  without  modification,
40       are  permitted  in  any  medium  without royalty provided the copyright
41       notice and this notice are preserved.
42

SEE ALSO

44       The full documentation for gnutls is maintained as  a  Texinfo  manual.
45       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
46       visit
47
48       http://www.gnutls.org/manual/
49
50gnutls                               3.6.5gnutls_transport_set_push_function(3)
Impressum