From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/network-feature-testing.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 devdocs/elisp/network-feature-testing.html (limited to 'devdocs/elisp/network-feature-testing.html') diff --git a/devdocs/elisp/network-feature-testing.html b/devdocs/elisp/network-feature-testing.html new file mode 100644 index 00000000..250baf6b --- /dev/null +++ b/devdocs/elisp/network-feature-testing.html @@ -0,0 +1,10 @@ +

Testing Availability of Network Features

To test for the availability of a given network feature, use featurep like this:

(featurep 'make-network-process '(keyword value))
+
+

The result of this form is t if it works to specify keyword with value value in make-network-process. Here are some of the keywordvalue pairs you can test in this way.

(:nowait t)

Non-nil if non-blocking connect is supported.

(:type datagram)

Non-nil if datagrams are supported.

(:family local)

Non-nil if local (a.k.a. “UNIX domain”) sockets are supported.

(:family ipv6)

Non-nil if IPv6 is supported.

(:service t)

Non-nil if the system can select the port for a server.

To test for the availability of a given network option, use featurep like this:

(featurep 'make-network-process 'keyword)
+
+

The accepted keyword values are :bindtodevice, etc. For the complete list, see Network Options. This form returns non-nil if that particular network option is supported by make-network-process (or set-network-process-option).

+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Network-Feature-Testing.html +

+
-- cgit v1.2.3