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
67ca7dcb
Commit
67ca7dcb
authored
Jun 04, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obsolete API elements removed - this commit breaks backward compatibility
parent
d844a906
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
22 deletions
+11
-22
zmq_forwarder.cpp
devices/zmq_forwarder/zmq_forwarder.cpp
+1
-1
zmq_queue.cpp
devices/zmq_queue/zmq_queue.cpp
+1
-1
zmq_streamer.cpp
devices/zmq_streamer/zmq_streamer.cpp
+1
-1
zmq.h
include/zmq.h
+1
-10
zmq.hpp
include/zmq.hpp
+2
-2
local_lat.cpp
perf/local_lat.cpp
+1
-1
local_thr.cpp
perf/local_thr.cpp
+1
-1
remote_lat.cpp
perf/remote_lat.cpp
+1
-1
remote_thr.cpp
perf/remote_thr.cpp
+1
-1
zmq.cpp
src/zmq.cpp
+1
-3
No files found.
devices/zmq_forwarder/zmq_forwarder.cpp
View file @
67ca7dcb
...
...
@@ -52,7 +52,7 @@ int main (int argc, char *argv [])
}
// TODO: make the number of I/O threads configurable.
zmq
::
context_t
ctx
(
1
,
1
);
zmq
::
context_t
ctx
(
1
);
zmq
::
socket_t
in_socket
(
ctx
,
ZMQ_SUB
);
in_socket
.
setsockopt
(
ZMQ_SUBSCRIBE
,
""
,
0
);
zmq
::
socket_t
out_socket
(
ctx
,
ZMQ_PUB
);
...
...
devices/zmq_queue/zmq_queue.cpp
View file @
67ca7dcb
...
...
@@ -52,7 +52,7 @@ int main (int argc, char *argv [])
}
// TODO: make the number of I/O threads configurable.
zmq
::
context_t
ctx
(
1
,
1
,
ZMQ_POLL
);
zmq
::
context_t
ctx
(
1
);
zmq
::
socket_t
in_socket
(
ctx
,
ZMQ_XREP
);
zmq
::
socket_t
out_socket
(
ctx
,
ZMQ_XREQ
);
...
...
devices/zmq_streamer/zmq_streamer.cpp
View file @
67ca7dcb
...
...
@@ -52,7 +52,7 @@ int main (int argc, char *argv [])
}
// TODO: make the number of I/O threads configurable.
zmq
::
context_t
ctx
(
1
,
1
);
zmq
::
context_t
ctx
(
1
);
zmq
::
socket_t
in_socket
(
ctx
,
ZMQ_UPSTREAM
);
zmq
::
socket_t
out_socket
(
ctx
,
ZMQ_DOWNSTREAM
);
...
...
include/zmq.h
View file @
67ca7dcb
...
...
@@ -144,10 +144,7 @@ ZMQ_EXPORT size_t zmq_msg_size (zmq_msg_t *msg);
/* 0MQ infrastructure (a.k.a. context) initialisation & termination. */
/******************************************************************************/
/* This flag is obsolete and has no effect. To be removed in next version. */
#define ZMQ_POLL 1
ZMQ_EXPORT
void
*
zmq_init
(
int
app_threads
,
int
io_threads
,
int
flags
);
ZMQ_EXPORT
void
*
zmq_init
(
int
io_threads
);
ZMQ_EXPORT
int
zmq_term
(
void
*
context
);
/******************************************************************************/
...
...
@@ -155,9 +152,7 @@ ZMQ_EXPORT int zmq_term (void *context);
/******************************************************************************/
/* Socket types. */
/* ZMQ_P2P is obsolete and scheduled to be removed in version 2.0.8 */
#define ZMQ_PAIR 0
#define ZMQ_P2P 0
#define ZMQ_PUB 1
#define ZMQ_SUB 2
#define ZMQ_REQ 3
...
...
@@ -169,8 +164,6 @@ ZMQ_EXPORT int zmq_term (void *context);
/* Socket options. */
#define ZMQ_HWM 1
/* TODO: LWM is obsolete and should be removed in next version. */
#define ZMQ_LWM 2
#define ZMQ_SWAP 3
#define ZMQ_AFFINITY 4
#define ZMQ_IDENTITY 5
...
...
@@ -186,8 +179,6 @@ ZMQ_EXPORT int zmq_term (void *context);
/* Send/recv options. */
#define ZMQ_NOBLOCK 1
#define ZMQ_SNDMORE 2
/* Obsolete. To be removed in 2.0.7 release. */
#define ZMQ_MORE 2
ZMQ_EXPORT
void
*
zmq_socket
(
void
*
context
,
int
type
);
ZMQ_EXPORT
int
zmq_close
(
void
*
s
);
...
...
include/zmq.hpp
View file @
67ca7dcb
...
...
@@ -167,9 +167,9 @@ namespace zmq
public
:
inline
context_t
(
int
app_threads_
,
int
io_threads_
,
int
flags_
=
0
)
inline
context_t
(
int
io_threads_
)
{
ptr
=
zmq_init
(
app_threads_
,
io_threads_
,
flag
s_
);
ptr
=
zmq_init
(
io_thread
s_
);
if
(
ptr
==
NULL
)
throw
error_t
();
}
...
...
perf/local_lat.cpp
View file @
67ca7dcb
...
...
@@ -42,7 +42,7 @@ int main (int argc, char *argv [])
message_size
=
atoi
(
argv
[
2
]);
roundtrip_count
=
atoi
(
argv
[
3
]);
ctx
=
zmq_init
(
1
,
1
,
0
);
ctx
=
zmq_init
(
1
);
if
(
!
ctx
)
{
printf
(
"error in zmq_init: %s
\n
"
,
zmq_strerror
(
errno
));
return
-
1
;
...
...
perf/local_thr.cpp
View file @
67ca7dcb
...
...
@@ -45,7 +45,7 @@ int main (int argc, char *argv [])
message_size
=
atoi
(
argv
[
2
]);
message_count
=
atoi
(
argv
[
3
]);
ctx
=
zmq_init
(
1
,
1
,
0
);
ctx
=
zmq_init
(
1
);
if
(
!
ctx
)
{
printf
(
"error in zmq_send: %s
\n
"
,
zmq_strerror
(
errno
));
return
-
1
;
...
...
perf/remote_lat.cpp
View file @
67ca7dcb
...
...
@@ -46,7 +46,7 @@ int main (int argc, char *argv [])
message_size
=
atoi
(
argv
[
2
]);
roundtrip_count
=
atoi
(
argv
[
3
]);
ctx
=
zmq_init
(
1
,
1
,
0
);
ctx
=
zmq_init
(
1
);
if
(
!
ctx
)
{
printf
(
"error in zmq_init: %s
\n
"
,
zmq_strerror
(
errno
));
return
-
1
;
...
...
perf/remote_thr.cpp
View file @
67ca7dcb
...
...
@@ -42,7 +42,7 @@ int main (int argc, char *argv [])
message_size
=
atoi
(
argv
[
2
]);
message_count
=
atoi
(
argv
[
3
]);
ctx
=
zmq_init
(
1
,
1
,
0
);
ctx
=
zmq_init
(
1
);
if
(
!
ctx
)
{
printf
(
"error in zmq_recv: %s
\n
"
,
zmq_strerror
(
errno
));
return
-
1
;
...
...
src/zmq.cpp
View file @
67ca7dcb
...
...
@@ -226,9 +226,7 @@ size_t zmq_msg_size (zmq_msg_t *msg_)
return
((
zmq
::
msg_content_t
*
)
msg_
->
content
)
->
size
;
}
// TODO: app_threads and flags parameters are not used anymore...
// Reflect this in the API/ABI.
void
*
zmq_init
(
int
/*app_threads_*/
,
int
io_threads_
,
int
/*flags_*/
)
void
*
zmq_init
(
int
io_threads_
)
{
if
(
io_threads_
<
0
)
{
errno
=
EINVAL
;
...
...
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