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
a5ef5014
Commit
a5ef5014
authored
Feb 19, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #516 from SRombauts/master
Corrected some more linking errors in MSVC build
parents
a8dfcb3c
927000fe
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
7 deletions
+23
-7
libzmq.vcproj
builds/msvc/libzmq/libzmq.vcproj
+16
-0
ctx.cpp
src/ctx.cpp
+1
-1
options.cpp
src/options.cpp
+2
-2
router.cpp
src/router.cpp
+2
-2
socket_base.cpp
src/socket_base.cpp
+1
-1
xpub.cpp
src/xpub.cpp
+1
-1
No files found.
builds/msvc/libzmq/libzmq.vcproj
View file @
a5ef5014
...
...
@@ -402,6 +402,14 @@
RelativePath=
"..\..\..\src\random.cpp"
>
</File>
<File
RelativePath=
"..\..\..\src\raw_decoder.cpp"
>
</File>
<File
RelativePath=
"..\..\..\src\raw_encoder.cpp"
>
</File>
<File
RelativePath=
"..\..\..\src\reaper.cpp"
>
...
...
@@ -692,6 +700,14 @@
RelativePath=
"..\..\..\src\random.hpp"
>
</File>
<File
RelativePath=
"..\..\..\src\raw_decoder.hpp"
>
</File>
<File
RelativePath=
"..\..\..\src\raw_encoder.hpp"
>
</File>
<File
RelativePath=
"..\..\..\src\reaper.hpp"
>
...
...
src/ctx.cpp
View file @
a5ef5014
...
...
@@ -143,7 +143,7 @@ int zmq::ctx_t::set (int option_, int optval_)
else
if
(
option_
==
ZMQ_IPV6
&&
optval_
>=
0
)
{
opt_sync
.
lock
();
ipv6
=
optval_
;
ipv6
=
(
optval_
!=
0
)
;
opt_sync
.
unlock
();
}
else
{
...
...
src/options.cpp
View file @
a5ef5014
...
...
@@ -185,7 +185,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
/* Deprecated in favor of ZMQ_IPV6 */
case
ZMQ_IPV4ONLY
:
if
(
is_int
&&
(
value
==
0
||
value
==
1
))
ipv6
=
1
-
value
;
ipv6
=
(
value
==
0
)
;
else
valid
=
false
;
break
;
...
...
@@ -193,7 +193,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
/* To replace the somewhat surprising IPV4ONLY */
case
ZMQ_IPV6
:
if
(
is_int
&&
(
value
==
0
||
value
==
1
))
ipv6
=
value
;
ipv6
=
(
value
!=
0
)
;
else
valid
=
false
;
break
;
...
...
src/router.cpp
View file @
a5ef5014
...
...
@@ -88,14 +88,14 @@ int zmq::router_t::xsetsockopt (int option_, const void *optval_,
return
-
1
;
}
if
(
option_
==
ZMQ_ROUTER_RAW
)
{
raw_sock
=
*
static_cast
<
const
int
*>
(
optval_
);
raw_sock
=
(
*
static_cast
<
const
int
*>
(
optval_
)
!=
0
);
if
(
raw_sock
)
{
options
.
recv_identity
=
false
;
options
.
raw_sock
=
true
;
}
}
else
mandatory
=
*
static_cast
<
const
int
*>
(
optval_
);
mandatory
=
(
*
static_cast
<
const
int
*>
(
optval_
)
!=
0
);
return
0
;
}
...
...
src/socket_base.cpp
View file @
a5ef5014
...
...
@@ -135,7 +135,7 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_) :
monitor_events
(
0
)
{
options
.
socket_id
=
sid_
;
options
.
ipv6
=
parent_
->
get
(
ZMQ_IPV6
);
options
.
ipv6
=
(
parent_
->
get
(
ZMQ_IPV6
)
!=
0
);
}
zmq
::
socket_base_t
::~
socket_base_t
()
...
...
src/xpub.cpp
View file @
a5ef5014
...
...
@@ -98,7 +98,7 @@ int zmq::xpub_t::xsetsockopt (int option_, const void *optval_,
errno
=
EINVAL
;
return
-
1
;
}
verbose
=
*
static_cast
<
const
int
*>
(
optval_
);
verbose
=
(
*
static_cast
<
const
int
*>
(
optval_
)
!=
0
);
return
0
;
}
...
...
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