extern int bpc_frame_aggregate

(struct CHANNEL_INSTANCE* inst,
  struct frame* in,
  char** buffer)

Allocates a buffer by aggregating the payloads of all the frames in a message.

Documentation

Allocates a buffer by aggregating the payloads of all the frames in a message.

Use bpc_buffer_destroy to deallocate the buffer returned, but only if it has not been used as a parameter to bpc_send.

This routine makes a copy of the payloads, and does not affect either the original frames nor the receive window size.

Parameters:
inst - A pointer to the channel-instance structure.
in - A pointer to the first frame in a message.
buffer - (out) A character pointer updated to point to the newly-allocated buffer.
Returns:
int The size of the buffer, or -1 on failure.

Home Alphabetic index



This page was generated with the help of DOC++.