Allows to get the amount of data to be used to build the next frame.
This function calls to the user defined configured handler on the connection, acting globally to all channels. If no handler is defined, the function returns -1.
|connection ||The connection where a frame is about to be sent.|
|channel ||The connection where the sending operation is taking place.|
|next_seq_no ||This value represent the next sequence number for the first octect to be sent on the frame.|
|message_size ||This value represent the size of the payload to be sent.|
|max_seq_no ||Is the maximum allowed seqno accepted by the remote peer. Beyond this value, the remote peer will close the connection.|
- The amount of payload to use into the next frame to be built. The function will return -1 if no handler is defined or connection reference received is null.