From 9be877c68503c35f9f72c8b92bd11454e4fcad97 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 8 Dec 2009 15:41:50 +0100 Subject: ZMQII-26: Use zero-copy for large messages --- src/zmq_engine.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/zmq_engine.hpp') diff --git a/src/zmq_engine.hpp b/src/zmq_engine.hpp index 0d1b10a..ea77b7e 100644 --- a/src/zmq_engine.hpp +++ b/src/zmq_engine.hpp @@ -20,6 +20,8 @@ #ifndef __ZMQ_ZMQ_ENGINE_HPP_INCLUDED__ #define __ZMQ_ZMQ_ENGINE_HPP_INCLUDED__ +#include + #include "i_engine.hpp" #include "io_object.hpp" #include "tcp_socket.hpp" @@ -54,13 +56,15 @@ namespace zmq tcp_socket_t tcp_socket; handle_t handle; + unsigned char *inbuf_storage; unsigned char *inbuf; - int insize; - int inpos; + size_t insize; + size_t inpos; + unsigned char *outbuf_storage; unsigned char *outbuf; - int outsize; - int outpos; + size_t outsize; + size_t outpos; i_inout *inout; -- cgit v1.2.3