[zeromq-dev] basic_istream/ostream

Martin Lucina mato at kotelna.sk
Tue Aug 3 16:14:19 CEST 2010

ph at imatix.com said:
> On Mon, Aug 2, 2010 at 3:44 PM, Matt Weinstein <matt_weinstein at yahoo.com> wrote:
> >> >       socket >> msgs
> >> socket << 1 << "abc" << 2 << endm;
> > ...
> > I'm already doing something like this with a simple flush class...
> There are great advantages in using a consistent API semantic across
> all languages and having that API looks like sockets.
> At the same time, this kind of syntax is lovely.  Are there classes
> that do this with standard TCP sockets already?  That would allow this
> to be cleanly layered on top of 0MQ's socket API.

The syntax is nice but again works in C++ land. While I can see the appeal
for C++ programmers who would like to see a more high-level API which "fits
their language better" it's also important that the plain low-level (C) API
be exported in any language if possible. That way all the language bindings
stay as language-agnostic as possible.


More information about the zeromq-dev mailing list