diff options
| author | Lars Ingebrigtsen | 2016-02-22 13:20:04 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-22 13:20:04 +1100 |
| commit | 41895f93be76cc1489856debaa3578f849451984 (patch) | |
| tree | 8cc145dedd8e0924ec2cbe4c7bf974633b6e1761 /doc | |
| parent | b55bf9f45acff424710c5192342a82175e12ddf8 (diff) | |
| download | emacs-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.texi | 8 |
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 | |||
| 2426 | be done asynchronously are domain name resolution, socket setup, and | 2426 | be done asynchronously are domain name resolution, socket setup, and |
| 2427 | (for TLS connections) TLS negotiation. | 2427 | (for TLS connections) TLS negotiation. |
| 2428 | 2428 | ||
| 2429 | Many functions that interact with process objects, (for instance, | ||
| 2430 | @code{process-datagram-address}) rely on them at least having a socket | ||
| 2431 | before they can return a useful value. These functions will block | ||
| 2432 | until the socket has achieved the desired status. The recommended way | ||
| 2433 | of interacting with asynchronous sockets is to place a sentinel on the | ||
| 2434 | process, and not try to interact with it before it has changed status | ||
| 2435 | to @samp{"run"}. That way, none of these functions will block. | ||
| 2436 | |||
| 2429 | @item :tls-parameters | 2437 | @item :tls-parameters |
| 2430 | When opening a TLS connection, this should be where the first element | 2438 | When opening a TLS connection, this should be where the first element |
| 2431 | is the TLS type (which should either be @code{gnutls-x509pki} or | 2439 | is the TLS type (which should either be @code{gnutls-x509pki} or |