Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
1a02b1b3
Commit
1a02b1b3
authored
Oct 21, 2016
by
Luca Boccassi
Committed by
GitHub
Oct 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2168 from outotec/fix-build-2
Problem: Does not build in Visual Studio 2013 / Win32
parents
d8f55dde
bb7421dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tcp_address.cpp
src/tcp_address.cpp
+4
-2
No files found.
src/tcp_address.cpp
View file @
1a02b1b3
...
...
@@ -237,6 +237,8 @@ int zmq::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv6_, bool is_
#elif (defined ZMQ_HAVE_WINDOWS)
#include <netioapi.h>
int
zmq
::
tcp_address_t
::
get_interface_name
(
unsigned
long
index
,
char
**
dest
)
const
{
char
*
buffer
=
(
char
*
)
malloc
(
IF_MAX_STRING_SIZE
);
alloc_assert
(
buffer
);
...
...
@@ -324,8 +326,8 @@ int zmq::tcp_address_t::resolve_nic_name(const char *nic_, bool ipv6_, bool is_s
)
{
// Iterate over all unicast addresses bound to the current network interface
IP_ADAPTER_UNICAST_ADDRESS
_LH
*
unicast_address
=
current_addresses
->
FirstUnicastAddress
;
IP_ADAPTER_UNICAST_ADDRESS
_LH
*
current_unicast_address
=
unicast_address
;
IP_ADAPTER_UNICAST_ADDRESS
*
unicast_address
=
current_addresses
->
FirstUnicastAddress
;
IP_ADAPTER_UNICAST_ADDRESS
*
current_unicast_address
=
unicast_address
;
while
(
current_unicast_address
)
{
ADDRESS_FAMILY
family
=
current_unicast_address
->
Address
.
lpSockaddr
->
sa_family
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment