summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-10-30 12:29:12 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-10-30 12:29:12 +0000
commit2e949448e00349ad049c3e324e135132b2fd2314 (patch)
tree3b01f8ef0299a84d5f89b444939e5966913930bf
parent0235ca8682acc07597865bcceb5411f9c6b80577 (diff)
downloadgnutls-2e949448e00349ad049c3e324e135132b2fd2314.tar.gz
Added missing file.
-rw-r--r--doc/tex/translayer.tex19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/tex/translayer.tex b/doc/tex/translayer.tex
new file mode 100644
index 0000000000..aab46c4336
--- /dev/null
+++ b/doc/tex/translayer.tex
@@ -0,0 +1,19 @@
+\section{Transport Layer}
+\par
+\gnutls can be used above any transport layer. To do this you will only
+need to set up the
+\hyperref{gnutls\_global\_set\_push\_func()}{gnutls\_global\_set\_push\_func() (see Section }{
+for more information)}{gnutls_global_set_push_func} and
+\hyperref{gnutls\_global\_set\_pull\_func()}{gnutls\_global\_set\_pull\_func() (see Section }{
+for more information)}{gnutls_global_set_pull_func}
+functions. These functions will then be used by gnutls in order to send and receive data.
+The functions specified should return -1 on error and probably set errno appropriately.
+\gnutls supports EINTR and EAGAIN errno values (This means that appropriate
+values will be returned to the caller of the gnutls function).
+\par
+By default (if the above functions are not called), gnutls will use
+the berkeley sockets functions recv() and send(). In this case
+gnutls will use some hacks in order for select() to work, thus
+making easy to add \emph{TLS} support to existing servers.
+
+