diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-09-01 00:54:19 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-09-01 09:47:13 +0200 |
commit | 7f155df13ba76f4c1cac9c6862e25b70eb4eec3c (patch) | |
tree | 4436998af5128e0a3ad8400718f5f80151e4f56f /lib/system_override.c | |
parent | 34365450fd427b4eb98290c73b161b85d1d90b5f (diff) | |
download | gnutls-7f155df13ba76f4c1cac9c6862e25b70eb4eec3c.tar.gz |
Added documentation on asynchronous operation.
Diffstat (limited to 'lib/system_override.c')
-rw-r--r-- | lib/system_override.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/system_override.c b/lib/system_override.c index 7b5db63b3e..d8090bc69b 100644 --- a/lib/system_override.c +++ b/lib/system_override.c @@ -90,17 +90,15 @@ gnutls_transport_set_pull_function (gnutls_session_t session, * @func: a callback function * * This is the function where you set a function for gnutls to know - * whether data are ready to be received within a time limit in - * milliseconds. The callback should return 0 on timeout, a positive - * number if data can be received, and -1 on error. - * If the #data_size is non-zero that function should copy that - * amount of data received in peek mode (i.e., if any other - * function is called to receive data, it should return them again). - * + * whether data are ready to be received. It should wait for data a + * given time frame in milliseconds. The callback should return 0 on + * timeout, a positive number if data can be received, and -1 on error. + * You'll need to override this function if select() is not suitable + * for the provided transport calls. * The callback function is used in DTLS only. * * @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); + * ssize_t (*gnutls_pull_timeout_func)(gnutls_transport_ptr_t, unsigned int ms); * * Since: 3.0.0 **/ |