Blame doc/functions/gnutls_transport_set_push_function
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@deftypefun {void} {gnutls_transport_set_push_function} (gnutls_session_t @var{session}, gnutls_push_func @var{push_func})
|
|
Packit |
aea12f |
@var{session}: is a @code{gnutls_session_t} type.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{push_func}: a callback function similar to @code{write()}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This is the function where you set a push function for gnutls to
|
|
Packit |
aea12f |
use in order to send data. If you are going to use berkeley style
|
|
Packit |
aea12f |
sockets, you do not need to use this function since the default
|
|
Packit |
aea12f |
send(2) will probably be ok. Otherwise you should specify this
|
|
Packit |
aea12f |
function for gnutls to be able to send data.
|
|
Packit |
aea12f |
The callback should return a positive number indicating the
|
|
Packit |
aea12f |
bytes sent, and -1 on error.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@code{push_func} is of the form,
|
|
Packit |
aea12f |
ssize_t (*gnutls_push_func)(gnutls_transport_ptr_t, const void*, size_t);
|
|
Packit |
aea12f |
@end deftypefun
|