mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 04:17:57 +01:00
ZMQII-26: Use zero-copy for large messages
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#ifndef __ZMQ_ZMQ_ENGINE_HPP_INCLUDED__
|
||||
#define __ZMQ_ZMQ_ENGINE_HPP_INCLUDED__
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user