When using the upcall handler, we need to use usrsctp_recvv to retrieve the next message once the SCTP_EVENT_READ has been raised. In order to optimise memory allocation, can we get a function that returns the size of the message we would receive in the next usrsctp_recvv call?
Something like this:
size_t usrsctp_next_message_size(
struct socket *so,
struct sockaddr *from,
socklen_t fromlen,
int msg_flags
);