summaryrefslogtreecommitdiff
path: root/src/socket_base.cpp
diff options
context:
space:
mode:
authorMartin Hurton <hurtonm@gmail.com>2010-06-21 15:06:51 +0200
committerMartin Hurton <hurtonm@gmail.com>2010-06-21 15:06:51 +0200
commitfca2e8e8cc30bcd134839f6d0f5f9963323dad2b (patch)
treefceade0043c87c74fec8b6ad3de00b1090feaa9c /src/socket_base.cpp
parent10c28c1fc2f06c93e12a7c60f79a315cec7c5a52 (diff)
Add SWAP support
Diffstat (limited to 'src/socket_base.cpp')
-rw-r--r--src/socket_base.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index cca83f7..56c3b1a 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -195,13 +195,13 @@ int zmq::socket_base_t::connect (const char *addr_)
// Create inbound pipe, if required.
if (options.requires_in) {
- in_pipe = new (std::nothrow) pipe_t (this, peer, options.hwm);
+ in_pipe = new (std::nothrow) pipe_t (this, peer, options.hwm, options.swap);
zmq_assert (in_pipe);
}
// Create outbound pipe, if required.
if (options.requires_out) {
- out_pipe = new (std::nothrow) pipe_t (peer, this, options.hwm);
+ out_pipe = new (std::nothrow) pipe_t (peer, this, options.hwm, options.swap);
zmq_assert (out_pipe);
}
@@ -234,14 +234,14 @@ int zmq::socket_base_t::connect (const char *addr_)
// Create inbound pipe, if required.
if (options.requires_in) {
- in_pipe = new (std::nothrow) pipe_t (this, session, options.hwm);
+ in_pipe = new (std::nothrow) pipe_t (this, session, options.hwm, options.swap);
zmq_assert (in_pipe);
}
// Create outbound pipe, if required.
if (options.requires_out) {
- out_pipe = new (std::nothrow) pipe_t (session, this, options.hwm);
+ out_pipe = new (std::nothrow) pipe_t (session, this, options.hwm, options.swap);
zmq_assert (out_pipe);
}