aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-05-06 10:44:07 +0200
committerMicael Karlberg <[email protected]>2019-05-29 18:45:38 +0200
commit88a1140f46b47e8a3526a7239f343ca344e9a3e1 (patch)
treeb87f5a7db31cd3296f3e5f1487fc4e49b2e8d81f /erts/doc/src
parent27e7c94902e211276318652eb5d83ea18e5e70fd (diff)
downloadotp-88a1140f46b47e8a3526a7239f343ca344e9a3e1.tar.gz
otp-88a1140f46b47e8a3526a7239f343ca344e9a3e1.tar.bz2
otp-88a1140f46b47e8a3526a7239f343ca344e9a3e1.zip
[esock|doc] Make select_ref opaque
OTP-15731
Diffstat (limited to 'erts/doc/src')
-rw-r--r--erts/doc/src/socket.xml20
1 files changed, 6 insertions, 14 deletions
diff --git a/erts/doc/src/socket.xml b/erts/doc/src/socket.xml
index 48e91e93a7..47e84090ee 100644
--- a/erts/doc/src/socket.xml
+++ b/erts/doc/src/socket.xml
@@ -51,15 +51,10 @@
<seealso marker="#type-select_info"><c>SelectInfo</c></seealso><c>}</c>.
When data eventually arrives a 'select' message
will be sent to the caller: </p>
- <!--
- <list type="ordered">
- <item><c>{'$socket', Sock, select, Info}</c></item>
- </list>
- -->
<taglist>
<!-- NOTE THAT THE EMPTY TAG IS INTENTIONAL -->
<tag></tag>
- <item><c>{'$socket', Sock, select, Info}</c></item>
+ <item><c>{'$socket', socket(), select, select_ref()}</c></item>
</taglist>
<p>The caller can now make another
call to the recv function and now expect data.</p>
@@ -67,20 +62,15 @@
'current user' has called the function (recv in this case).</p>
<p>Another message the user must be prepared for (when making asynchronous
calls) is the <c>abort</c> message:</p>
- <!--
- <list type="ordered">
- <item><c>{'$socket', Sock, abort, Info}</c></item>
- </list>
- -->
<taglist>
<!-- NOTE THAT THE EMPTY TAG IS INTENTIONAL -->
<tag></tag>
- <item><c>{'$socket', Sock, abort, Info}</c></item>
+ <item><c>{'$socket', socket(), abort, Info}</c></item>
</taglist>
<p>This message indicates
that the (asynchronous) operation has been aborted.
- If, for instance, the socket has been
- closed (by another process), <c>Info</c> will be <c>{Ref, closed}</c>. </p>
+ If, for instance, the socket has been closed (by another process),
+ <c>Info</c> will be <c>{select_ref(), closed}</c>. </p>
</note>
<note>
<p>There is currently <em>no</em> support for Windows. </p>
@@ -111,6 +101,8 @@
</datatype>
<datatype>
<name name="select_ref"/>
+ <desc><p>A reference that uniquely identifies the (select) operation.</p>
+ </desc>
</datatype>
<datatype>
<name name="select_info"/>