devices can be created via API

This commit is contained in:
Jon Dyte
2010-04-07 08:20:01 +02:00
committed by Martin Sustrik
parent 0777567e89
commit edfd05df8e
13 changed files with 309 additions and 119 deletions

View File

@@ -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;