mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-27 02:16:19 +02:00
Merge pull request #13 from jdswinbank/master
Adding a wrapper for zmq_proxy()
This commit is contained in:
commit
34dd3a1f36
7
zmq.hpp
7
zmq.hpp
@ -96,6 +96,13 @@ namespace zmq
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void proxy (void *frontend, void *backend, void *capture)
|
||||||
|
{
|
||||||
|
int rc = zmq_proxy (frontend, backend, capture);
|
||||||
|
if (rc != 0)
|
||||||
|
throw error_t ();
|
||||||
|
}
|
||||||
|
|
||||||
inline void version (int *major_, int *minor_, int *patch_)
|
inline void version (int *major_, int *minor_, int *patch_)
|
||||||
{
|
{
|
||||||
zmq_version (major_, minor_, patch_);
|
zmq_version (major_, minor_, patch_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user