aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2002-03-17 20:37:10 +0000
committerKim F. Storm2002-03-17 20:37:10 +0000
commitfd13a3cc89ea801e59948ac0ad573e2ad039775a (patch)
tree6880a038cd9a507271c503faf04847dc0d1243b8
parent5439f987dd05340c901b74ad2381b9ba035f33a3 (diff)
downloademacs-fd13a3cc89ea801e59948ac0ad573e2ad039775a.tar.gz
emacs-fd13a3cc89ea801e59948ac0ad573e2ad039775a.zip
Describe enhanced networking support.
-rw-r--r--etc/NEWS52
1 files changed, 43 insertions, 9 deletions
diff --git a/etc/NEWS b/etc/NEWS
index d30a09c2e63..b600090d003 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -665,18 +665,52 @@ will lead to undesirable results, so don't let it happen; the first
665change group you start for any given buffer should be the last one 665change group you start for any given buffer should be the last one
666finished. 666finished.
667 667
668** You can now use non-blocking connect to open network streams. 668** Enhanced networking support.
669 669
670The function open-network-stream has a new optional 7th argument. 670*** There is a new `make-network-process' function which supports
671If non-nil, that function will initiate a non-blocking connect and 671opening of stream and datagram connections to a server, as well as
672return immediately before the connection is established. 672create a stream or datagram server inside emacs.
673 673
674It returns nil if the system does not support non-blocking connects; 674- A server is started using :server t arg.
675the caller may then make a normal (blocking) open-network-stream. 675- Datagram connection is selected using :datagram t arg.
676- A server can open on a random port using :service t arg.
677- Local sockets are supported using :family 'local arg.
678- Non-blocking connect is supported using :nowait t arg.
676 679
677The filter and sentinel functions can now be specified as arguments 680*** Original open-network-stream is now emulated using make-network-process.
678to open-network-stream. When the non-blocking connect completes, the 681
679sentinel is called with the status matching "open" or "failed". 682*** New function open-network-stream-nowait.
683
684This function initiates a non-blocking connect and returns immediately
685before the connection is established. The filter and sentinel
686functions can be specified as arguments to open-network-stream-nowait.
687When the non-blocking connect completes, the sentinel is called with
688the status matching "open" or "failed".
689
690*** New function open-network-stream-server.
691
692*** New functions process-datagram-address and set-process-datagram-address.
693
694*** By default, the function process-contact still returns (HOST SERVICE)
695for a network process. Using the new optional KEY arg, the complete list
696of network process properties or a specific property can be selected.
697
698Using :local and :remote as the KEY, the address of the local or
699remote end-point is returned. An Inet address is represented as a 5
700element vector, where the first 4 elements contain the IP address and
701the fifth is the port number.
702
703*** Network processes can now be stopped and restarted with
704`stop-process' and `continue-process'. For a server process, no
705connections are accepted in the stopped state. For a client process,
706no input is received in the stopped state.
707
708*** Function list-processes now has an optional argument; if non-nil,
709only the processes whose query-on-exit flag is set are listed.
710
711*** New set-process-query-on-exit-flag and process-query-on-exit-flag
712functions. The existing process-kill-without-query function is still
713supported, but new code should use the new functions.
680 714
681** New function substring-no-properties. 715** New function substring-no-properties.
682 716