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
c7f2cdd6
Commit
c7f2cdd6
authored
Aug 06, 2015
by
KIU Shueng Chuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Windows setsockopt needs char* cast
parent
ca9215de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tcp.cpp
src/tcp.cpp
+4
-2
No files found.
src/tcp.cpp
View file @
c7f2cdd6
...
...
@@ -160,10 +160,12 @@ void zmq::tune_tcp_retransmit_timeout (fd_t sockfd_, int timeout_)
#if defined (ZMQ_HAVE_WINDOWS) && defined (TCP_MAXRT)
// msdn says it's supported in >= Vista, >= Windows Server 2003
timeout_
/=
1000
;
// in seconds
int
rc
=
setsockopt
(
sockfd_
,
IPPROTO_TCP
,
TCP_MAXRT
,
&
timeout_
,
sizeof
(
timeout_
));
int
rc
=
setsockopt
(
sockfd_
,
IPPROTO_TCP
,
TCP_MAXRT
,
(
char
*
)
&
timeout_
,
sizeof
(
timeout_
));
wsa_assert
(
rc
!=
SOCKET_ERROR
);
#elif defined (TCP_USER_TIMEOUT) // FIXME: should be ZMQ_HAVE_TCP_USER_TIMEOUT
int
rc
=
setsockopt
(
sockfd_
,
IPPROTO_TCP
,
TCP_USER_TIMEOUT
,
&
timeout_
,
sizeof
(
timeout_
));
int
rc
=
setsockopt
(
sockfd_
,
IPPROTO_TCP
,
TCP_USER_TIMEOUT
,
&
timeout_
,
sizeof
(
timeout_
));
errno_assert
(
rc
==
0
);
#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