diff options
author | Raimo Niskanen <[email protected]> | 2011-09-02 10:38:39 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2011-11-17 12:10:59 +0100 |
commit | faea8584311fcb5365c585280e5e9b2364ed121e (patch) | |
tree | 3a560347d7b10cdd815ae7afe19839439e4e8cfb /lib/kernel/src/inet6_tcp.erl | |
parent | bfb350ecc30d44e64ed75512690a0e4fbbb6bc2a (diff) | |
download | otp-faea8584311fcb5365c585280e5e9b2364ed121e.tar.gz otp-faea8584311fcb5365c585280e5e9b2364ed121e.tar.bz2 otp-faea8584311fcb5365c585280e5e9b2364ed121e.zip |
erts,kernel: Add type stream sockets to SCTP
Diffstat (limited to 'lib/kernel/src/inet6_tcp.erl')
-rw-r--r-- | lib/kernel/src/inet6_tcp.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kernel/src/inet6_tcp.erl b/lib/kernel/src/inet6_tcp.erl index cc45f6c7f6..c714b2bee0 100644 --- a/lib/kernel/src/inet6_tcp.erl +++ b/lib/kernel/src/inet6_tcp.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1997-2009. All Rights Reserved. +%% Copyright Ericsson AB 1997-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -93,7 +93,7 @@ do_connect(Addr = {A,B,C,D,E,F,G,H}, Port, Opts, Time) when port=BPort, opts=SockOpts}} when ?ip6(Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb), ?port(BPort) -> - case inet:open(Fd,BAddr,BPort,SockOpts,tcp,inet6,?MODULE) of + case inet:open(Fd,BAddr,BPort,SockOpts,tcp,inet6,stream,?MODULE) of {ok, S} -> case prim_inet:connect(S, Addr, Port, Time) of ok -> {ok,S}; @@ -115,7 +115,7 @@ listen(Port, Opts) -> port=BPort, opts=SockOpts}=R} when ?ip6(A,B,C,D,E,F,G,H), ?port(BPort) -> - case inet:open(Fd,BAddr,BPort,SockOpts,tcp,inet6,?MODULE) of + case inet:open(Fd,BAddr,BPort,SockOpts,tcp,inet6,stream,?MODULE) of {ok, S} -> case prim_inet:listen(S, R#listen_opts.backlog) of ok -> {ok, S}; @@ -149,5 +149,5 @@ accept(L,Timeout) -> %% Create a port/socket from a file descriptor %% fdopen(Fd, Opts) -> - inet:fdopen(Fd, Opts, tcp, inet6, ?MODULE). + inet:fdopen(Fd, Opts, tcp, inet6, stream, ?MODULE). |