sctp icon indicating copy to clipboard operation
sctp copied to clipboard

Getting the maximal usable stream-id for a SCTP connection

Open vingarzan opened this issue 6 months ago • 0 comments

Hey folks!

in the INIT/INIT-ACK handshake each side declares 2 parameters for streams:

  • number of Outbound Streams (OSs)
  • maximum Inbound Streams (MISs)

Afterwards, when sending we're supposed to use values in the range 0 .. min(local OS, remote MIS) - 1. Otherwise we'd get an "invalid argument" on send (which, theoretically could be avoided if the stack would modulo the input stream-id by that min).

Anyway, maybe it's obvious, but I can't tell: is there an API or way to obtain this value for a SCTPConn?

Thanks! -Dragos

vingarzan avatar Aug 08 '24 14:08 vingarzan