diff options
author | Hans Bolinder <[email protected]> | 2011-08-26 15:25:37 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-08-26 15:26:00 +0200 |
commit | 9a52e239698ae62cddbc0d780502c72458867b6f (patch) | |
tree | 0b8ec97a7793fac7f26d101a9dad5ca63f559d0e /lib/kernel/doc/src/gen_tcp.xml | |
parent | 67f89ecba0ef3a1f707c6c3b40d32605b7e2b352 (diff) | |
parent | c6f772a04eafccf03d20b0bbda08c399b4640f38 (diff) | |
download | otp-9a52e239698ae62cddbc0d780502c72458867b6f.tar.gz otp-9a52e239698ae62cddbc0d780502c72458867b6f.tar.bz2 otp-9a52e239698ae62cddbc0d780502c72458867b6f.zip |
Merge branch 'hb/inet_types_and_specs/OTP-9260' into dev
* hb/inet_types_and_specs/OTP-9260:
Improve types and specifications of the inet modules
Diffstat (limited to 'lib/kernel/doc/src/gen_tcp.xml')
-rw-r--r-- | lib/kernel/doc/src/gen_tcp.xml | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/lib/kernel/doc/src/gen_tcp.xml b/lib/kernel/doc/src/gen_tcp.xml index ebd822359a..8a5d40bb16 100644 --- a/lib/kernel/doc/src/gen_tcp.xml +++ b/lib/kernel/doc/src/gen_tcp.xml @@ -65,25 +65,16 @@ do_recv(Sock, Bs) -> <datatypes> <datatype> - <name name="hostname"/> + <name name="option"/> </datatype> <datatype> - <name name="ip_address"/> - <desc> - <p>Represents an address of a TCP socket. - It is a tuple as explained in - <seealso marker="inet">inet(3)</seealso>.</p> - </desc> + <name name="option_name"/> </datatype> <datatype> - <name name="port_number"/> + <name name="connect_option"/> </datatype> <datatype> - <name name="posix"/> - <desc> - <p>See <seealso marker="inet#error_codes"> - inet(3); POSIX Error Codes</seealso>.</p> - </desc> + <name name="listen_option"/> </datatype> <datatype> <name><marker id="type-socket">socket()</marker></name> @@ -122,7 +113,7 @@ do_recv(Sock, Bs) -> <item> <p>Specify which local port number to use.</p> </item> - <tag><c>{fd, int()}</c></tag> + <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 @@ -196,6 +187,10 @@ do_recv(Sock, Bs) -> <p>If the host has several network interfaces, this option specifies which one to listen on.</p> </item> + <tag><c>{port, Port}</c></tag> + <item> + <p>Specify which local port number to use.</p> + </item> <tag><c>{fd, Fd}</c></tag> <item> <p>If a socket has somehow been connected without using |