Attention is currently required from: pespin, daniel.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/32758 )
Change subject: osmo_io: Improve handling of segmentation_cb ......................................................................
Patch Set 3:
(2 comments)
Commit Message:
https://gerrit.osmocom.org/c/libosmocore/+/32758/comment/672ec2f1_eb5f3948 PS3, Line 9: int in
File include/osmocom/core/osmo_io.h:
https://gerrit.osmocom.org/c/libosmocore/+/32758/comment/95c9980d_082c90b2 PS3, Line 46: * Needs to return the size of the next segment. If it returns
Maybe the initial point here is that I'm not sure why the segmentation callback is needed in osmo_io […]
pespin: The point of osmo_io is to be a one-stop shop for all users of the kind of telecom protocols that we see - irrespective of whether they're on SEQPACKET bearers like SCTP or on the cumbersome "preserve message boundaries over TCP stream" approahc that IPA does. This significantly unifies code that has to deal with both variants, such as e.g. a BSC speaking BSSAP over either M3UA/SCTP or over IPA. The user should be concerned with sending or receiving protocol-level messages, and not be botered with TCP stream segmentation.