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
a9eb6f79
Commit
a9eb6f79
authored
Nov 25, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #762 from ricnewton/master
Fix windows build for type of service.
parents
3cddcbaa
abbe704d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
CMakeLists.txt
CMakeLists.txt
+1
-0
ip.cpp
src/ip.cpp
+1
-5
No files found.
CMakeLists.txt
View file @
a9eb6f79
...
@@ -620,6 +620,7 @@ set(tests
...
@@ -620,6 +620,7 @@ set(tests
test_shutdown_stress
test_shutdown_stress
test_timeo
test_timeo
test_many_sockets
test_many_sockets
test_diffserv
)
)
if
(
NOT WIN32
)
if
(
NOT WIN32
)
list
(
APPEND tests
list
(
APPEND tests
...
...
src/ip.cpp
View file @
a9eb6f79
...
@@ -149,17 +149,13 @@ bool zmq::get_peer_ip_address (fd_t sockfd_, std::string &ip_addr_)
...
@@ -149,17 +149,13 @@ bool zmq::get_peer_ip_address (fd_t sockfd_, std::string &ip_addr_)
return
true
;
return
true
;
}
}
void
zmq
::
set_ip_type_of_service
(
fd_t
s_
,
int
iptos
)
void
zmq
::
set_ip_type_of_service
(
fd_t
s_
,
int
iptos
)
{
{
(
void
)
s_
;
int
rc
=
setsockopt
(
s_
,
IPPROTO_IP
,
IP_TOS
,
reinterpret_cast
<
const
char
*>
(
&
iptos
),
sizeof
(
iptos
));
int
rc
=
setsockopt
(
s_
,
IPPROTO_IP
,
IP_TOS
,
&
iptos
,
sizeof
(
iptos
));
#ifdef ZMQ_HAVE_WINDOWS
#ifdef ZMQ_HAVE_WINDOWS
wsa_assert
(
rc
!=
SOCKET_ERROR
);
wsa_assert
(
rc
!=
SOCKET_ERROR
);
#else
#else
errno_assert
(
rc
==
0
);
errno_assert
(
rc
==
0
);
#endif
#endif
}
}
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