sctp
sctp copied to clipboard
Getting the maximal usable stream-id for a SCTP connection
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