diff options
author | Jon Dyte <jon@totient.co.uk> | 2010-04-07 08:20:01 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-04-07 08:20:01 +0200 |
commit | edfd05df8ef58afc498795cb74906c07ee396f76 (patch) | |
tree | 8b9eb27265ffc16a170cfab8b912279c02dfd00f /include/zmq.hpp | |
parent | 0777567e8911382ac42859f907730df023ebec26 (diff) |
devices can be created via API
Diffstat (limited to 'include/zmq.hpp')
-rw-r--r-- | include/zmq.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/zmq.hpp b/include/zmq.hpp index 6228133..63d2835 100644 --- a/include/zmq.hpp +++ b/include/zmq.hpp @@ -56,6 +56,13 @@ namespace zmq return rc; } + inline void device (int device_, void * insocket_, void* outsocket_) + { + int rc = zmq_device (device_, insocket_, outsocket_); + if (rc != 0) + throw error_t (); + } + class message_t : private zmq_msg_t { friend class socket_t; |