aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2010-10-28 17:03:29 +0200
committerIngela Anderton Andin <[email protected]>2010-10-28 17:03:29 +0200
commit8c8cc48cf3ab96f5e0017be903f817374bb3d1a9 (patch)
tree5ca0b82919d32f94ae7f066f7291438855f3be76 /lib/odbc/src
parent4517dc3f3ec6c329693d1570c61954fa593e6159 (diff)
downloadotp-8c8cc48cf3ab96f5e0017be903f817374bb3d1a9.tar.gz
otp-8c8cc48cf3ab96f5e0017be903f817374bb3d1a9.tar.bz2
otp-8c8cc48cf3ab96f5e0017be903f817374bb3d1a9.zip
Ipv6 can now be supported on Windows as well as on UNIX.
Loopback address constants are used when connecting the c-side to the erlang-side over local socket API avoiding getaddrinfo problems, and the {ip, loopback} option is added as a listen option on the erlang-side. Also cleaned up the TIME_STAMP contribution.
Diffstat (limited to 'lib/odbc/src')
-rw-r--r--lib/odbc/src/odbc.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/odbc/src/odbc.erl b/lib/odbc/src/odbc.erl
index eb27a471ec..83d9f33102 100644
--- a/lib/odbc/src/odbc.erl
+++ b/lib/odbc/src/odbc.erl
@@ -441,10 +441,12 @@ init(Args) ->
{ok, ListenSocketSup} =
gen_tcp:listen(0, [Inet, binary, {packet, ?LENGTH_INDICATOR_SIZE},
- {active, false}, {nodelay, true}]),
+ {active, false}, {nodelay, true},
+ {ip, loopback}]),
{ok, ListenSocketOdbc} =
gen_tcp:listen(0, [Inet, binary, {packet, ?LENGTH_INDICATOR_SIZE},
- {active, false}, {nodelay, true}]),
+ {active, false}, {nodelay, true},
+ {ip, loopback}]),
%% Start the port program (a c program) that utilizes the odbc driver
case os:find_executable(?SERVERPROG, ?SERVERDIR) of