Mercurial > emacs
comparison etc/NEWS @ 43973:7e66682c7ec6
Describe enhanced networking support.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sun, 17 Mar 2002 20:37:10 +0000 |
parents | 348e264952d1 |
children | 9ebe6b2c13f3 |
comparison
equal
deleted
inserted
replaced
43972:31b6bf22b82b | 43973:7e66682c7ec6 |
---|---|
663 would expect. Non-nested use of change groups for the same buffer | 663 would expect. Non-nested use of change groups for the same buffer |
664 will lead to undesirable results, so don't let it happen; the first | 664 will lead to undesirable results, so don't let it happen; the first |
665 change group you start for any given buffer should be the last one | 665 change group you start for any given buffer should be the last one |
666 finished. | 666 finished. |
667 | 667 |
668 ** You can now use non-blocking connect to open network streams. | 668 ** Enhanced networking support. |
669 | 669 |
670 The function open-network-stream has a new optional 7th argument. | 670 *** There is a new `make-network-process' function which supports |
671 If non-nil, that function will initiate a non-blocking connect and | 671 opening of stream and datagram connections to a server, as well as |
672 return immediately before the connection is established. | 672 create a stream or datagram server inside emacs. |
673 | 673 |
674 It returns nil if the system does not support non-blocking connects; | 674 - A server is started using :server t arg. |
675 the caller may then make a normal (blocking) open-network-stream. | 675 - Datagram connection is selected using :datagram t arg. |
676 | 676 - A server can open on a random port using :service t arg. |
677 The filter and sentinel functions can now be specified as arguments | 677 - Local sockets are supported using :family 'local arg. |
678 to open-network-stream. When the non-blocking connect completes, the | 678 - Non-blocking connect is supported using :nowait t arg. |
679 sentinel is called with the status matching "open" or "failed". | 679 |
680 *** Original open-network-stream is now emulated using make-network-process. | |
681 | |
682 *** New function open-network-stream-nowait. | |
683 | |
684 This function initiates a non-blocking connect and returns immediately | |
685 before the connection is established. The filter and sentinel | |
686 functions can be specified as arguments to open-network-stream-nowait. | |
687 When the non-blocking connect completes, the sentinel is called with | |
688 the 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) | |
695 for a network process. Using the new optional KEY arg, the complete list | |
696 of network process properties or a specific property can be selected. | |
697 | |
698 Using :local and :remote as the KEY, the address of the local or | |
699 remote end-point is returned. An Inet address is represented as a 5 | |
700 element vector, where the first 4 elements contain the IP address and | |
701 the 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 | |
705 connections are accepted in the stopped state. For a client process, | |
706 no input is received in the stopped state. | |
707 | |
708 *** Function list-processes now has an optional argument; if non-nil, | |
709 only 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 | |
712 functions. The existing process-kill-without-query function is still | |
713 supported, but new code should use the new functions. | |
680 | 714 |
681 ** New function substring-no-properties. | 715 ** New function substring-no-properties. |
682 | 716 |
683 ** New function minibuffer-selected-window. | 717 ** New function minibuffer-selected-window. |
684 | 718 |