aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-11-06 15:25:10 +0100
committerMicael Karlberg <[email protected]>2018-11-06 15:25:10 +0100
commit0182f3ddb6a0243444bd1ef279221e0acc010233 (patch)
tree1875dfac505842f33ef491d68ebe95a84b45ae85 /erts/doc
parent3f46e8a184a503ead01674ee180e7222b3928712 (diff)
parente3e607ac76dc308da3ac24364477d48da0dc23bd (diff)
downloadotp-0182f3ddb6a0243444bd1ef279221e0acc010233.tar.gz
otp-0182f3ddb6a0243444bd1ef279221e0acc010233.tar.bz2
otp-0182f3ddb6a0243444bd1ef279221e0acc010233.zip
Merge branch 'bmk/20181101/nififying_inet_ping_pong/OTP-14831' into bmk/20180918/nififying_inet/OTP-14831
Diffstat (limited to 'erts/doc')
-rw-r--r--erts/doc/src/socket.xml14
1 files changed, 12 insertions, 2 deletions
diff --git a/erts/doc/src/socket.xml b/erts/doc/src/socket.xml
index 49c14869bf..ea2fde7dee 100644
--- a/erts/doc/src/socket.xml
+++ b/erts/doc/src/socket.xml
@@ -405,7 +405,8 @@
<name name="recvmsg" arity="1"/>
<name name="recvmsg" arity="2" clause_i="1"/>
<name name="recvmsg" arity="2" clause_i="2"/>
- <name name="recvmsg" arity="3"/>
+ <name name="recvmsg" arity="3" clause_i="1"/>
+ <name name="recvmsg" arity="3" clause_i="2"/>
<name name="recvmsg" arity="5"/>
<fsummary>Receive a message from a socket.</fsummary>
<desc>
@@ -416,7 +417,7 @@
which may contain the source address (if socket not connected),
a list of <c>cmsghdr_recv()</c> (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 . </p>
+ also a set of flags, providing further info about the read. </p>
<p>The <c>BufSz</c> argument basically defines the size of the
receive buffer. By setting the value to zero (0), the configured
@@ -458,6 +459,15 @@
which also contains the message to send,
The <c>MsgHdr</c> may also contain an list of optional <c>cmsghdr_send()</c>
(depends on what the protocol and platform supports).</p>
+
+ <p>Unlike the <seealso marker="#send"><c>send</c></seealso> function,
+ this one sends <em>one message</em>.
+ This means that if, for whatever reason, its not possible to send the
+ message in one go, the function will instead return with the
+ <em>remaining</em> data (<c>{ok, Remaining}</c>). Thereby leaving it
+ up to the caller to decide what to do (retry with the remaining data
+ of give up). </p>
+
</desc>
</func>