summaryrefslogtreecommitdiff
path: root/lib/system_override.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-11 16:14:29 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-11 18:35:10 +0200
commit641115f7ebcb29b1ff6ebd0aa5de13b94684c13b (patch)
tree133f773afefc95857ac42bcfd9fb8c330f726328 /lib/system_override.c
parentf2dd1a574c79b5d2c378ce632d7469abaff9683e (diff)
downloadgnutls-641115f7ebcb29b1ff6ebd0aa5de13b94684c13b.tar.gz
Added session initialization discussion
Diffstat (limited to 'lib/system_override.c')
-rw-r--r--lib/system_override.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/system_override.c b/lib/system_override.c
index 9d631c5100..82463d087e 100644
--- a/lib/system_override.c
+++ b/lib/system_override.c
@@ -70,11 +70,11 @@ gnutls_transport_set_errno (gnutls_session_t session, int err)
*
* 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.
+ * use this function since the default recv(2) will probably be ok.
* The callback should return 0 on connection termination, a positive
* number indicating the number of bytes received, and -1 on error.
*
- * gnutls_pull_func is of the form,
+ * @gnutls_pull_func is of the form,
* ssize_t (*gnutls_pull_func)(gnutls_transport_ptr_t, void*, size_t);
**/
void
@@ -99,7 +99,7 @@ gnutls_transport_set_pull_function (gnutls_session_t session,
*
* The callback function is used in DTLS only.
*
- * gnutls_pull_timeout_func is of the form,
+ * @gnutls_pull_timeout_func is of the form,
* ssize_t (*gnutls_pull_timeout_func)(gnutls_transport_ptr_t, void*data, size_t size, unsigned int ms);
*
* Since: 3.0.0
@@ -119,12 +119,12 @@ gnutls_transport_set_pull_timeout_function (gnutls_session_t 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
+ * send(2) will probably be ok. Otherwise you should specify this
* function for gnutls to be able to send data.
* The callback should return a positive number indicating the
* bytes sent, and -1 on error.
*
- * push_func is of the form,
+ * @push_func is of the form,
* ssize_t (*gnutls_push_func)(gnutls_transport_ptr_t, const void*, size_t);
*
**/
@@ -141,13 +141,12 @@ gnutls_transport_set_push_function (gnutls_session_t session,
* @session: is a #gnutls_session_t structure.
* @vec_func: a callback function similar to writev()
*
- * 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.
+ * Using this function you can override the default writev(2)
+ * function for gnutls to send data. Setting this callback
+ * instead of gnutls_transport_set_push_function() is recommended
+ * since it introduces less overhead in the TLS handshake process.
*
- * vec_func is of the form,
+ * @vec_func is of the form,
* ssize_t (*gnutls_vec_push_func) (gnutls_transport_ptr_t, const giovec_t * iov, int iovcnt);
*
* Since: 2.12.0
@@ -168,7 +167,7 @@ gnutls_transport_set_vec_push_function (gnutls_session_t session,
* This is the function where you set a function to retrieve errno
* after a failed push or pull operation.
*
- * errno_func is of the form,
+ * @errno_func is of the form,
* int (*gnutls_errno_func)(gnutls_transport_ptr_t);
* and should return the errno.
*