Skip to content

Size of next incoming message (upcall handler) #4

@lgrahl

Description

@lgrahl

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
);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions