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
131f2e30
Commit
131f2e30
authored
Aug 17, 2009
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subscribe API removed
parent
059beca5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
21 deletions
+0
-21
display.cpp
examples/chat/display.cpp
+0
-1
zmq.h
include/zmq.h
+0
-3
zmq.hpp
include/zmq.hpp
+0
-6
socket_base.cpp
src/socket_base.cpp
+0
-5
socket_base.hpp
src/socket_base.hpp
+0
-1
zmq.cpp
src/zmq.cpp
+0
-5
No files found.
examples/chat/display.cpp
View file @
131f2e30
...
...
@@ -41,7 +41,6 @@ int main (int argc, const char *argv [])
zmq
::
context_t
ctx
(
1
,
1
);
zmq
::
socket_t
s
(
ctx
,
ZMQ_SUB
);
s
.
connect
(
chatroom_out_address
);
s
.
subscribe
(
"*"
);
while
(
true
)
{
...
...
include/zmq.h
View file @
131f2e30
...
...
@@ -172,9 +172,6 @@ ZMQ_EXPORT int zmq_bind (void *s, const char *addr);
// Connect the socket to a particular address.
ZMQ_EXPORT
int
zmq_connect
(
void
*
s
,
const
char
*
addr
);
// Subscribe for the subset of messages identified by 'criteria' argument.
ZMQ_EXPORT
int
zmq_subscribe
(
void
*
s
,
const
char
*
criteria
);
// Send the message 'msg' to the socket 's'. 'flags' argument can be
// combination of following values:
// ZMQ_NOBLOCK - if message cannot be sent, return immediately.
...
...
include/zmq.hpp
View file @
131f2e30
...
...
@@ -260,12 +260,6 @@ namespace zmq
}
}
inline
void
subscribe
(
const
char
*
criteria_
)
{
int
rc
=
zmq_subscribe
(
ptr
,
criteria_
);
assert
(
rc
==
0
);
}
inline
int
send
(
message_t
&
msg_
,
int
flags_
=
0
)
{
int
rc
=
zmq_send
(
ptr
,
&
msg_
,
flags_
);
...
...
src/socket_base.cpp
View file @
131f2e30
...
...
@@ -147,11 +147,6 @@ int zmq::socket_base_t::connect (const char *addr_)
return
0
;
}
int
zmq
::
socket_base_t
::
subscribe
(
const
char
*
criteria_
)
{
zmq_assert
(
false
);
}
int
zmq
::
socket_base_t
::
send
(
struct
zmq_msg
*
msg_
,
int
flags_
)
{
zmq_assert
(
false
);
...
...
src/socket_base.hpp
View file @
131f2e30
...
...
@@ -41,7 +41,6 @@ namespace zmq
virtual
int
setsockopt
(
int
option_
,
void
*
optval_
,
size_t
optvallen_
);
virtual
int
bind
(
const
char
*
addr_
);
virtual
int
connect
(
const
char
*
addr_
);
virtual
int
subscribe
(
const
char
*
criteria_
);
virtual
int
send
(
struct
zmq_msg
*
msg_
,
int
flags_
);
virtual
int
flush
();
virtual
int
recv
(
struct
zmq_msg
*
msg_
,
int
flags_
);
...
...
src/zmq.cpp
View file @
131f2e30
...
...
@@ -208,11 +208,6 @@ int zmq_connect (void *s_, const char *addr_)
return
(((
zmq
::
socket_base_t
*
)
s_
)
->
connect
(
addr_
));
}
int
zmq_subscribe
(
void
*
s_
,
const
char
*
criteria_
)
{
return
(((
zmq
::
socket_base_t
*
)
s_
)
->
subscribe
(
criteria_
));
}
int
zmq_send
(
void
*
s_
,
zmq_msg
*
msg_
,
int
flags_
)
{
return
(((
zmq
::
socket_base_t
*
)
s_
)
->
send
(
msg_
,
flags_
));
...
...
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