Skip to content

Commit

Permalink
kernel: Document ifaddr option
Browse files Browse the repository at this point in the history
  * same as ip option
  • Loading branch information
psyeugenic committed Apr 16, 2012
1 parent d64479b commit 57c50be
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/kernel/doc/src/gen_tcp.xml
Expand Up @@ -102,17 +102,19 @@ do_recv(Sock, Bs) ->
specifies which one to use.</p>
</item>

<tag><c>{ifaddr, ip_address()}</c></tag>
<item>
<p>Same as <c>{ip, ip_address()}</c>. If the host has several network interfaces, this option
specifies which one to use.</p>
</item>

<tag><c>{fd, integer() >= 0}</c></tag>
<item>
<p>If a socket has somehow been connected without using
<c>gen_tcp</c>, use this option to pass the file
descriptor for it.</p>
</item>

<tag><c>{ifaddr, ip_address()}</c></tag>
<item> <p>TODO: Document</p>
</item>

<tag><c>inet</c></tag>
<item>
<p>Set up the socket for IPv4.</p>
Expand Down Expand Up @@ -207,7 +209,9 @@ do_recv(Sock, Bs) ->
</item>

<tag><c>{ifaddr, ip_address()}</c></tag>
<item> <p>TODO: Document</p>
<item>
<p>Same as <c>{ip, ip_address()}</c>. If the host has several network interfaces, this option
specifies which one to use.</p>
</item>

<tag><c>inet6</c></tag>
Expand Down
8 changes: 8 additions & 0 deletions lib/kernel/doc/src/gen_udp.xml
Expand Up @@ -72,6 +72,14 @@
<p>If the host has several network interfaces, this option
specifies which one to use.</p>
</item>

<tag><c>{ifaddr, ip_address()}</c></tag>
<item>
<p>Same as <c>{ip, ip_address()}</c>. If the host has several network interfaces, this option
specifies which one to use.</p>
</item>


<tag><c>{fd, integer() >= 0}</c></tag>
<item>
<p>If a socket has somehow been opened without using
Expand Down

0 comments on commit 57c50be

Please sign in to comment.