diff options
| author | Kim F. Storm | 2002-03-17 20:37:10 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-03-17 20:37:10 +0000 |
| commit | fd13a3cc89ea801e59948ac0ad573e2ad039775a (patch) | |
| tree | 6880a038cd9a507271c503faf04847dc0d1243b8 | |
| parent | 5439f987dd05340c901b74ad2381b9ba035f33a3 (diff) | |
| download | emacs-fd13a3cc89ea801e59948ac0ad573e2ad039775a.tar.gz emacs-fd13a3cc89ea801e59948ac0ad573e2ad039775a.zip | |
Describe enhanced networking support.
| -rw-r--r-- | etc/NEWS | 52 |
1 files changed, 43 insertions, 9 deletions
| @@ -665,18 +665,52 @@ 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 | - 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 | ||
| 677 | The filter and sentinel functions can now be specified as arguments | 680 | *** Original open-network-stream is now emulated using make-network-process. |
| 678 | to open-network-stream. When the non-blocking connect completes, the | 681 | |
| 679 | sentinel is called with the status matching "open" or "failed". | 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 | ||