[zeromq-dev] Request: Serialization hook.

Steven McCoy steven.mccoy at miru.hk
Thu Aug 12 05:50:50 CEST 2010


On 12 August 2010 11:37, Oliver Smith <oliver at kfs.org> wrote:

> I'd like to see making transport mixing a little easier.
>
> Consider the following code:
>
>   struct Foo {
>     std::string a ;
>     std::vector<int> b ;
>   } ;
>
>   Foo foo("Hello", { 1, 2, 3, 4 }) ;    // C++0x
>
>   zmq::message_t msg(&foo, sizeof(foo), NULL) ;
>   socket.send(msg, 0) ;
>
>
As it is C++ why would you not just derive a new function overloading Socket
class?

Such semantics would also have requests for encryption, compression,
authentication, entitlements, auditing, subscription management, etc.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100812/e2e9874d/attachment.htm>


More information about the zeromq-dev mailing list