aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-22 13:20:04 +1100
committerLars Ingebrigtsen2016-02-22 13:20:04 +1100
commit41895f93be76cc1489856debaa3578f849451984 (patch)
tree8cc145dedd8e0924ec2cbe4c7bf974633b6e1761 /doc
parentb55bf9f45acff424710c5192342a82175e12ddf8 (diff)
downloademacs-41895f93be76cc1489856debaa3578f849451984.tar.gz
emacs-41895f93be76cc1489856debaa3578f849451984.zip
Mention sentinels in conjunction with :nowait t.
* doc/lispref/processes.texi (Network Processes): Mention the recommended way of using sentinels with :nowait t.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/processes.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 8234501fd89..79cebaa79fa 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -2426,6 +2426,14 @@ Depending on the capabilities of Emacs, how asynchronous
2426be done asynchronously are domain name resolution, socket setup, and 2426be done asynchronously are domain name resolution, socket setup, and
2427(for TLS connections) TLS negotiation. 2427(for TLS connections) TLS negotiation.
2428 2428
2429Many functions that interact with process objects, (for instance,
2430@code{process-datagram-address}) rely on them at least having a socket
2431before they can return a useful value. These functions will block
2432until the socket has achieved the desired status. The recommended way
2433of interacting with asynchronous sockets is to place a sentinel on the
2434process, and not try to interact with it before it has changed status
2435to @samp{"run"}. That way, none of these functions will block.
2436
2429@item :tls-parameters 2437@item :tls-parameters
2430When opening a TLS connection, this should be where the first element 2438When opening a TLS connection, this should be where the first element
2431is the TLS type (which should either be @code{gnutls-x509pki} or 2439is the TLS type (which should either be @code{gnutls-x509pki} or