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 /erts/preloaded/src/erl_prim_loader.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 'erts/preloaded/src/erl_prim_loader.erl')
-rw-r--r-- | erts/preloaded/src/erl_prim_loader.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/preloaded/src/erl_prim_loader.erl b/erts/preloaded/src/erl_prim_loader.erl index 0b4db3d9d0..35defde692 100644 --- a/erts/preloaded/src/erl_prim_loader.erl +++ b/erts/preloaded/src/erl_prim_loader.erl @@ -729,7 +729,7 @@ udp_options() -> %% INET version IPv4 addresses %% ll_tcp_connect(LocalPort, IP, RemotePort) -> - case ll_open_set_bind(tcp, ?INET_FAMILY, tcp_options(), + case ll_open_set_bind(tcp, ?INET_FAMILY, stream, tcp_options(), ?INET_ADDRESS, LocalPort) of {ok,S} -> case prim_inet:connect(S, IP, RemotePort, tcp_timeout()) of @@ -743,11 +743,11 @@ ll_tcp_connect(LocalPort, IP, RemotePort) -> %% Open and initialize an udp port for broadcast %% ll_udp_open(P) -> - ll_open_set_bind(udp, ?INET_FAMILY, udp_options(), ?INET_ADDRESS, P). + ll_open_set_bind(udp, ?INET_FAMILY, dgram, udp_options(), ?INET_ADDRESS, P). -ll_open_set_bind(Protocol, Family, SOpts, IP, Port) -> - case prim_inet:open(Protocol, Family) of +ll_open_set_bind(Protocol, Family, Type, SOpts, IP, Port) -> + case prim_inet:open(Protocol, Family, Type) of {ok, S} -> case prim_inet:setopts(S, SOpts) of ok -> |