From 3e2c3eec258b1ea13affe91db0451f3737983306 Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Fri, 17 May 2019 12:12:02 +0200 Subject: [esock|doc] Updated accoring to handling of Unix Domain socket Updated documentation with regard to Unix Domain sockets. OTP-15822 --- erts/doc/src/socket.xml | 21 +++++++++++++-------- erts/doc/src/socket_usage.xml | 2 +- 2 files changed, 14 insertions(+), 9 deletions(-) (limited to 'erts/doc/src') diff --git a/erts/doc/src/socket.xml b/erts/doc/src/socket.xml index 343b61d4aa..9b34bf1df1 100644 --- a/erts/doc/src/socket.xml +++ b/erts/doc/src/socket.xml @@ -373,19 +373,24 @@ Create an endpoint for communication. -

Creates an endpoint (socket) for communication.

-

For some types there is a default protocol, which will - be used if no protocol is specified:

+

Creates an endpoint (socket) for communication.

- -

stream: tcp

-

dgram: udp

-

seqpacket: sctp

-
+

For some types there is a default protocol, + indicated by default, which it may be + possible to specify. + And for Domain = local, if a protocol is pecified, + it must be default.

The Extra argument is intended for "obscure" options. Currently the only supported option is netns, which is only supported on the linux platform.

+ + +

It may not be possible to specify the default protocol (except + when Domain = local). We need to be able to retreive + the resulting protocol, which is not possble on all + platforms.

+
diff --git a/erts/doc/src/socket_usage.xml b/erts/doc/src/socket_usage.xml index e0f006e618..4b3872d7e3 100644 --- a/erts/doc/src/socket_usage.xml +++ b/erts/doc/src/socket_usage.xml @@ -205,7 +205,7 @@ protocol() no yes - none + Not on (some) Darwin (for instance) rcvbuf -- cgit v1.2.3