mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-15 23:20:09 +02:00
Message-related functionality factored out into msg_t class.
This patch addresses serveral issues: 1. It gathers message related functionality scattered over whole codebase into a single class. 2. It makes zmq_msg_t an opaque datatype. Internals of the class don't pollute zmq.h header file. 3. zmq_msg_t size decreases from 48 to 32 bytes. That saves ~33% of memory in scenarios with large amount of small messages. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "../include/zmq.h"
|
||||
|
||||
#include "tcp_connecter.hpp"
|
||||
#include "platform.hpp"
|
||||
#include "ip.hpp"
|
||||
|
Reference in New Issue
Block a user