diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-04-08 19:46:36 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-04-08 19:46:36 +0200 |
commit | a86f3cdca6e955b161618f6ca67e9040bdee42d7 (patch) | |
tree | 51c47584ea23e4ca5769fe92692edcdaf6c677df /doc | |
parent | 2c9de3d2e9e293e6a6eca851d68b3afcfe492901 (diff) | |
download | gnutls-a86f3cdca6e955b161618f6ca67e9040bdee42d7.tar.gz |
doc: Replace references to select with poll and other fixes
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cha-gtls-app.texi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/cha-gtls-app.texi b/doc/cha-gtls-app.texi index 5e6824f047..774355c474 100644 --- a/doc/cha-gtls-app.texi +++ b/doc/cha-gtls-app.texi @@ -806,11 +806,11 @@ The only exception is @funcref{gnutls_record_send}, which if interrupted subsequent calls need not to include the data to be sent (can be called with NULL argument). -When using the @funcintref{select} system call though, one should remember -that it is only applicable to the kernel sockets API. To check for any -available buffers in a @acronym{GnuTLS} session, +When using the @funcintref{poll} or @funcintref{select} system calls though, one should remember +that they only apply to the kernel sockets API. To check for any +available buffered data in a @acronym{GnuTLS} session, utilize @funcref{gnutls_record_check_pending}, -either before the @funcintref{select} system call, or after a call to +either before the @funcintref{poll} system call, or after a call to @funcref{gnutls_record_recv}. Data queued by @funcref{gnutls_record_send} (when interrupted) can be discarded using @funcref{gnutls_record_discard_queued}. @@ -927,8 +927,8 @@ protocol, this field allows distinguishing out-of-order messages. The @funcref{gnutls_record_check_pending} helper function is available to allow checking whether data are available to be read in a @acronym{GnuTLS} session -buffers. Note that this function complements but does not replace @funcintref{select}, -i.e., @funcref{gnutls_record_check_pending} reports no data to be read, @funcintref{select} +buffers. Note that this function complements but does not replace @funcintref{poll}, +i.e., @funcref{gnutls_record_check_pending} reports no data to be read, @funcintref{poll} should be called to check for data in the network buffers. @showfuncdesc{gnutls_record_check_pending} |