working with single message frames
Create a new frame. If size is not null, allocates the frame data
to the specified size. If additionally, data is not null, copies
size octets from the specified data into the frame body.
Destroy a frame
Create an empty (zero-sized) frame
Create a frame with a specified string content.
Receive frame from socket, returns zframe_t object or NULL if the recv
was interrupted. Does a blocking recv, if you want to not block then use
zpoller or zloop.
Send a frame to a socket, destroy frame after sending.
Return -1 on error, 0 on success.
Return number of bytes in frame data
Return address of frame data
Return meta data property for frame
The caller shall not modify or free the returned value, which shall be
owned by the message.
Create a new frame that duplicates an existing frame. If frame is null,
or memory was exhausted, returns null.
Return frame data encoded as printable hex string, useful for 0MQ UUIDs.
Caller must free string when finished with it.
Return frame data copied into freshly allocated string
Caller must free string when finished with it.
Return TRUE if frame body is equal to string, excluding terminator
Return frame MORE indicator (1 or 0), set when reading frame from socket
or by the zframe_set_more() method
Set frame MORE indicator (1 or 0). Note this is NOT used when sending
frame to socket, you have to specify flag explicitly.
Return frame routing ID, if the frame came from a ZMQ_SERVER socket.
Else returns zero.
Set routing ID on frame. This is used if/when the frame is sent to a
ZMQ_SERVER socket.
Return frame group of radio-dish pattern.
Set group on frame. This is used if/when the frame is sent to a
ZMQ_RADIO socket.
Return -1 on error, 0 on success.
Return TRUE if two frames have identical size and data
If either frame is NULL, equality is always false.
Set new contents for frame
Send message to zsys log sink (may be stdout, or system facility as
configured by zsys_set_logstream). Prefix shows before frame, if not null.
Probe the supplied object, and report if it looks like a zframe_t.