diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-03-24 12:27:06 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-03-24 12:27:06 +0100 |
commit | 8463b4d55e45ea29d5a23f867e7f1c0077279ee7 (patch) | |
tree | 2c728398c1a8e7bd9b1bcb938fbce8a543147e1c /src/options.cpp | |
parent | fb27a000d9383b503761d0124e7bd41115d70c9a (diff) |
SWAP functionality removed
On-disk storage should be implemented in devices rather than
in 0MQ core. 0MQ is a networking library and there's no point
in storing network buffers on disk.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
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 79e4029..9916475 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -27,7 +27,6 @@ zmq::options_t::options_t () : hwm (0), - swap (0), affinity (0), rate (100), recovery_ivl (10), @@ -59,14 +58,6 @@ int zmq::options_t::setsockopt (int option_, const void *optval_, hwm = *((uint64_t*) optval_); return 0; - case ZMQ_SWAP: - if (optvallen_ != sizeof (int64_t) || *((int64_t*) optval_) < 0) { - errno = EINVAL; - return -1; - } - swap = *((int64_t*) optval_); - return 0; - case ZMQ_AFFINITY: if (optvallen_ != sizeof (uint64_t)) { errno = EINVAL; @@ -195,15 +186,6 @@ int zmq::options_t::getsockopt (int option_, void *optval_, size_t *optvallen_) *optvallen_ = sizeof (uint64_t); return 0; - case ZMQ_SWAP: - if (*optvallen_ < sizeof (int64_t)) { - errno = EINVAL; - return -1; - } - *((int64_t*) optval_) = swap; - *optvallen_ = sizeof (int64_t); - return 0; - case ZMQ_AFFINITY: if (*optvallen_ < sizeof (uint64_t)) { errno = EINVAL; |