diff options
author | Lukas Larsson <[email protected]> | 2014-07-11 10:46:37 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2014-07-22 09:29:22 +0200 |
commit | 8a6390613225ec3f3e2d5bbf537d2e0737342e87 (patch) | |
tree | a89fa6a8466484f4d3e91793659dc77763af5565 /lib/kernel/doc/src | |
parent | 450f0f893b5d28e6d967b163111f8a8a6032b0e1 (diff) | |
download | otp-8a6390613225ec3f3e2d5bbf537d2e0737342e87.tar.gz otp-8a6390613225ec3f3e2d5bbf537d2e0737342e87.tar.bz2 otp-8a6390613225ec3f3e2d5bbf537d2e0737342e87.zip |
kernel: When doing an fdopen we now also bind the fd to the specified addr/port
Diffstat (limited to 'lib/kernel/doc/src')
-rw-r--r-- | lib/kernel/doc/src/gen_tcp.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/gen_tcp.xml b/lib/kernel/doc/src/gen_tcp.xml index 11a0843c10..3ab459d4ed 100644 --- a/lib/kernel/doc/src/gen_tcp.xml +++ b/lib/kernel/doc/src/gen_tcp.xml @@ -112,7 +112,12 @@ do_recv(Sock, Bs) -> <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> + descriptor for it. If <c>{ip, ip_address()}</c> + and/or <c>{port, port_number()}</c> is combined with + this option the fd will be bound to the given interface + and port before connecting. If these options are not given + it is assumed that the fd is already bound appropriately. + </p> </item> <tag><c>inet</c></tag> |