mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-21 08:19:00 +02:00
Interface to zmq_proxy()
This commit is contained in:
parent
127c255d65
commit
cc25ef9c52
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