[zeromq-dev] how to receive a message into a static buffer?

Pieter Hintjens ph at imatix.com
Tue May 5 17:27:35 CEST 2009


On Tue, May 5, 2009 at 5:00 PM, Martin Sustrik <sustrik at fastmq.com> wrote:

> No idea what errors are available in COBOL. Something like "buffer
> overflow"?

/me swaps state with 1986... COBOL is like C in that you pass errors
using any convention you like.  Usually you'll get a return value from
a subroutine call.

>> The length of a scalar variable in COBOL is 64KB. However, it is easy
>> enough to create a structure, or array for that matter, of much
>> greater length, so it is not a limitation.
>
> An array of bytes may be a substitute for variable sized message, but it'll
> make the usage of 0MQ pretty annoying in COBOL, right?

John was just saying that while atomic variables may be limited in
size, arrays thereof are not.  This is about fooling the
compiler/linker into setting aside appropriate amounts of storage.

How about, for non-tiny messages, defining some kind of high level
language 'descriptor' that languages can use, and which contains the
real message to be accessed indirectly.

-Pieter



More information about the zeromq-dev mailing list