diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-05-25 15:03:57 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-05-25 15:03:57 +0200 |
commit | 8408ae066dce123fc93e4f53dbadb1f60b7f2e8a (patch) | |
tree | 414194ee2bb2cf5eb0937ffb872e27c5e8656e03 /src/options.cpp | |
parent | f34a468a263c7b4013a267297ee7f121e12dfb9d (diff) |
LWM is computed rather than explicitly specified by user
Diffstat (limited to 'src/options.cpp')
-rw-r--r-- | src/options.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/options.cpp b/src/options.cpp index c13488f..f6b24d6 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -26,7 +26,6 @@ zmq::options_t::options_t () : hwm (0), - lwm (0), swap (0), affinity (0), rate (100), @@ -53,14 +52,6 @@ int zmq::options_t::setsockopt (int option_, const void *optval_, hwm = *((uint64_t*) optval_); return 0; - case ZMQ_LWM: - if (optvallen_ != sizeof (uint64_t)) { - errno = EINVAL; - return -1; - } - lwm = *((uint64_t*) optval_); - return 0; - case ZMQ_SWAP: if (optvallen_ != sizeof (int64_t)) { errno = EINVAL; @@ -155,15 +146,6 @@ int zmq::options_t::getsockopt (int option_, void *optval_, size_t *optvallen_) *optvallen_ = sizeof (uint64_t); return 0; - case ZMQ_LWM: - if (*optvallen_ < sizeof (uint64_t)) { - errno = EINVAL; - return -1; - } - *((uint64_t*) optval_) = lwm; - *optvallen_ = sizeof (uint64_t); - return 0; - case ZMQ_SWAP: if (*optvallen_ < sizeof (int64_t)) { errno = EINVAL; |