summaryrefslogtreecommitdiff
path: root/lib/gnutls_global.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-10 23:10:45 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-10 23:10:45 +0200
commitd0a081ec1b276a80a4b1ca1dc5109fd27ad0abc2 (patch)
treeddb00a0dabdc443abc2b17232375736e040772b9 /lib/gnutls_global.c
parentb3d8ec01ea3ffdc0e58b2f9f62148bc28a91e741 (diff)
downloadgnutls-d0a081ec1b276a80a4b1ca1dc5109fd27ad0abc2.tar.gz
Support scattered write using writev(). This takes
advantage of the new buffering layer and allows queuing of packets and flushing them. This is currently used for handshake messages only. Performance-wise the difference of packing several TLS records in a single write doesn't seem to offer anything over ethernet (that my tests were on). Probably on links with higher latency there would be a benefit.
Diffstat (limited to 'lib/gnutls_global.c')
-rw-r--r--lib/gnutls_global.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c
index 223abdca3b..943d2debd6 100644
--- a/lib/gnutls_global.c
+++ b/lib/gnutls_global.c
@@ -269,45 +269,6 @@ gnutls_global_deinit (void)
* historical reasons.
*/
-/**
- * gnutls_transport_set_pull_function:
- * @pull_func: a callback function similar to read()
- * @session: gnutls session
- *
- * This is the function where you set a function for gnutls to receive
- * data. Normally, if you use berkeley style sockets, do not need to
- * use this function since the default (recv(2)) will probably be ok.
- *
- * PULL_FUNC is of the form,
- * ssize_t (*gnutls_pull_func)(gnutls_transport_ptr_t, void*, size_t);
- **/
-void
-gnutls_transport_set_pull_function (gnutls_session_t session,
- gnutls_pull_func pull_func)
-{
- session->internals._gnutls_pull_func = pull_func;
-}
-
-/**
- * gnutls_transport_set_push_function:
- * @push_func: a callback function similar to write()
- * @session: gnutls session
- *
- * This is the function where you set a push function for gnutls to
- * use in order to send data. If you are going to use berkeley style
- * sockets, you do not need to use this function since the default
- * (send(2)) will probably be ok. Otherwise you should specify this
- * function for gnutls to be able to send data.
- *
- * PUSH_FUNC is of the form,
- * ssize_t (*gnutls_push_func)(gnutls_transport_ptr_t, const void*, size_t);
- **/
-void
-gnutls_transport_set_push_function (gnutls_session_t session,
- gnutls_push_func push_func)
-{
- session->internals._gnutls_push_func = push_func;
-}
/**
* gnutls_check_version: