From 929ae46220f402d6f36072c46fe27ba39ad48d1b Mon Sep 17 00:00:00 2001
From: Micael Karlberg
Date: Thu, 13 Sep 2018 15:44:21 +0200
Subject: [socket-nif] CMsgHdr and various doc related changes
Updated the (send) cmsghdr type and the handling of it
(in the nif code). Still not tested!
Removed the is_loaded nif function.
Tried to get fix the doc build problem (socket.erl *i think*),
which causes socket.html generation to fail with:
"cannot find module exporting type"
To solve this I tried to run dialyzer on preloaded, and ran into
problems with enc_setopt_value. Update various specs and types
to "solve" this (which did not work).
Updated the nif-stub functions to make dialyzer happy.
---
erts/doc/src/socket.xml | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
(limited to 'erts/doc')
diff --git a/erts/doc/src/socket.xml b/erts/doc/src/socket.xml
index b11b68cba5..35f7e8502d 100644
--- a/erts/doc/src/socket.xml
+++ b/erts/doc/src/socket.xml
@@ -176,11 +176,16 @@
+
-
+
+
+
+
@@ -427,7 +432,7 @@
how much we want to read, it returns when we get a message.
The message will be delivered in the form of a msghdr(),
which may contain the source address (if socket not connected),
- a list of cmsghdr() (depends on what socket options have
+ a list of cmsghdr_recv() (depends on what socket options have
been set and what the protocol and platform supports) and
also a set of flags, providing further info about the read .
@@ -466,11 +471,11 @@
Send a message on a socket.
- Send a message on a socket. The destination, if needed (socket not
- connected) is provided in the MsgHdr, which also
- contains the message to send, The MsgHdr may also contain
- an list of optional cmsghdr() (depends on what the protocol and
- platform supports).
+ Send a message on a socket. The destination, if needed
+ (socket not connected) is provided in the MsgHdr,
+ which also contains the message to send,
+ The MsgHdr may also contain an list of optional cmsghdr_send()
+ (depends on what the protocol and platform supports).
@@ -492,6 +497,7 @@
+
Set options on a socket.
Set options on a socket.
--
cgit v1.2.3