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
4c36c93a
Commit
4c36c93a
authored
May 07, 2015
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1397 from danriegsecker/master
Some test fail to build targeting less that Windows Vista
parents
59add707
f4f918ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
test_security_curve.cpp
tests/test_security_curve.cpp
+5
-1
test_security_null.cpp
tests/test_security_null.cpp
+4
-0
test_security_plain.cpp
tests/test_security_plain.cpp
+5
-1
No files found.
tests/test_security_curve.cpp
View file @
4c36c93a
...
...
@@ -235,7 +235,11 @@ int main (void)
ip4addr
.
sin_family
=
AF_INET
;
ip4addr
.
sin_port
=
htons
(
9998
);
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
#if (_WIN32_WINNT < 0x0600)
ip4addr
.
sin_addr
.
s_addr
=
inet_addr
(
"127.0.0.1"
);
#else
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
#endif
s
=
socket
(
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
);
rc
=
connect
(
s
,
(
struct
sockaddr
*
)
&
ip4addr
,
sizeof
(
ip4addr
));
...
...
tests/test_security_null.cpp
View file @
4c36c93a
...
...
@@ -148,7 +148,11 @@ int main (void)
ip4addr
.
sin_family
=
AF_INET
;
ip4addr
.
sin_port
=
htons
(
9003
);
#if (_WIN32_WINNT < 0x0600)
ip4addr
.
sin_addr
.
s_addr
=
inet_addr
(
"127.0.0.1"
);
#else
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
#endif
s
=
socket
(
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
);
rc
=
connect
(
s
,
(
struct
sockaddr
*
)
&
ip4addr
,
sizeof
ip4addr
);
...
...
tests/test_security_plain.cpp
View file @
4c36c93a
...
...
@@ -154,7 +154,11 @@ int main (void)
ip4addr
.
sin_family
=
AF_INET
;
ip4addr
.
sin_port
=
htons
(
9998
);
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
#if (_WIN32_WINNT < 0x0600)
ip4addr
.
sin_addr
.
s_addr
=
inet_addr
(
"127.0.0.1"
);
#else
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
#endif
s
=
socket
(
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
);
rc
=
connect
(
s
,
(
struct
sockaddr
*
)
&
ip4addr
,
sizeof
(
ip4addr
));
...
...
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