Browse Source

more win32 socket fixes.

tags/2021-05-28
Julian Storer 14 years ago
parent
commit
03393549bc
2 changed files with 2 additions and 6 deletions
  1. +1
    -3
      juce_amalgamated.cpp
  2. +1
    -3
      src/io/network/juce_Socket.cpp

+ 1
- 3
juce_amalgamated.cpp View File

@@ -9213,11 +9213,9 @@ namespace SocketHelpers
return true;
}

freeaddrinfo (info);

setSocketBlockingState (handle, false);

const int result = ::connect (handle, info->ai_addr, info->ai_addrlen);
freeaddrinfo (info);

if (result < 0)
{


+ 1
- 3
src/io/network/juce_Socket.cpp View File

@@ -283,11 +283,9 @@ namespace SocketHelpers
return true;
}
freeaddrinfo (info);
setSocketBlockingState (handle, false);
const int result = ::connect (handle, info->ai_addr, info->ai_addrlen);
freeaddrinfo (info);
if (result < 0)
{


Loading…
Cancel
Save