diff options
| author | Kim F. Storm | 2002-03-21 12:41:49 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-03-21 12:41:49 +0000 |
| commit | 60a501d771ad9d088f6561de89489e592f71af3e (patch) | |
| tree | be207b29903043fb4de9b364acaa8f7168ba618d | |
| parent | 41ad623325a240ba0faac183205ba44a9d6783ab (diff) | |
| download | emacs-60a501d771ad9d088f6561de89489e592f71af3e.tar.gz emacs-60a501d771ad9d088f6561de89489e592f71af3e.zip | |
Explain how to use featurep with make-network-process.
Changed :datagram t to :type 'datagram for datagram connection.
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -692,11 +692,14 @@ opening of stream and datagram connections to a server, as well as | |||
| 692 | create a stream or datagram server inside emacs. | 692 | create a stream or datagram server inside emacs. |
| 693 | 693 | ||
| 694 | - A server is started using :server t arg. | 694 | - A server is started using :server t arg. |
| 695 | - Datagram connection is selected using :datagram t arg. | 695 | - Datagram connection is selected using :type 'datagram arg. |
| 696 | - A server can open on a random port using :service t arg. | 696 | - A server can open on a random port using :service t arg. |
| 697 | - Local sockets are supported using :family 'local arg. | 697 | - Local sockets are supported using :family 'local arg. |
| 698 | - Non-blocking connect is supported using :nowait t arg. | 698 | - Non-blocking connect is supported using :nowait t arg. |
| 699 | 699 | ||
| 700 | To test for the availability of a given feature, use featurep like this: | ||
| 701 | (featurep 'make-network-process '(:type datagram)) | ||
| 702 | |||
| 700 | *** Original open-network-stream is now emulated using make-network-process. | 703 | *** Original open-network-stream is now emulated using make-network-process. |
| 701 | 704 | ||
| 702 | *** New function open-network-stream-nowait. | 705 | *** New function open-network-stream-nowait. |