getsockopt added to c++ binding

This commit is contained in:
Martin Sustrik 2010-04-11 07:59:03 +02:00
parent b668387d91
commit 6fea422583

View File

@ -219,6 +219,14 @@ namespace zmq
throw error_t ();
}
inline void getsockopt (int option_, void *optval_,
size_t *optvallen_)
{
int rc = zmq_getsockopt (ptr, option_, optval_, optvallen_);
if (rc != 0)
throw error_t ();
}
inline void bind (const char *addr_)
{
int rc = zmq_bind (ptr, addr_);