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
f80faeca
Commit
f80faeca
authored
Nov 13, 2015
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1640 from c-rack/fix-setsockopt
Solution: fix compilation errors
parents
18c51702
a992d9ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
options.cpp
src/options.cpp
+2
-2
options.hpp
src/options.hpp
+3
-3
No files found.
src/options.cpp
View file @
f80faeca
...
...
@@ -285,13 +285,13 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
case
ZMQ_TCP_RECV_BUFFER
:
if
(
is_int
&&
(
value
>=
0
&&
value
<=
10
)
)
{
tcp_recv_buffer_size
=
static_cast
<
int
>
(
std
::
pow
(
2
,
value
))
*
1024
;
tcp_recv_buffer_size
=
static_cast
<
unsigned
int
>
(
std
::
pow
(
2.0
,
value
))
*
1024
;
}
break
;
case
ZMQ_TCP_SEND_BUFFER
:
if
(
is_int
&&
(
value
>=
0
&&
value
<=
10
)
)
{
tcp_send_buffer_size
=
static_cast
<
int
>
(
std
::
pow
(
2
,
value
))
*
1024
;
tcp_send_buffer_size
=
static_cast
<
unsigned
int
>
(
std
::
pow
(
2.0
,
value
))
*
1024
;
}
break
;
...
...
src/options.hpp
View file @
f80faeca
...
...
@@ -156,9 +156,9 @@ namespace zmq
typedef
std
::
vector
<
tcp_address_mask_t
>
tcp_accept_filters_t
;
tcp_accept_filters_t
tcp_accept_filters
;
// TC
O
buffer sizes
int
tcp_recv_buffer_size
;
int
tcp_send_buffer_size
;
// TC
P
buffer sizes
unsigned
int
tcp_recv_buffer_size
;
unsigned
int
tcp_send_buffer_size
;
// IPC accept() filters
# if defined ZMQ_HAVE_SO_PEERCRED || defined ZMQ_HAVE_LOCAL_PEERCRED
...
...
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