Crate sctp_proto[−][src]
Expand description
Low-level protocol logic for the SCTP protocol
sctp-proto contains a fully deterministic implementation of SCTP protocol logic. It contains no networking code and does not get any relevant timestamps from the operating system. Most users may want to use the futures-based sctp-async API instead.
The sctp-proto API might be of interest if you want to use it from a C or C++ project through C bindings or if you want to use a different event loop than the one tokio provides.
The most important types are Endpoint
, which conceptually represents the protocol state for
a single socket and mostly manages configuration and dispatches incoming datagrams to the
related Association
. Association
types contain the bulk of the protocol logic related to
managing a single association and all the related state (such as streams).
Structs
Association represents an SCTP association
Events sent from an Endpoint to a Association
Internal identifier for a Connection
currently associated with an endpoint
chunkPayloadData represents an SCTP Chunk of type DATA
Configuration for outgoing connections
The main entry point to the library
Global configuration for the endpoint, affecting all connections
Events sent from a Association to an Endpoint
Parameters governing incoming connections
Stream represents an SCTP stream
StreamState represents the state of an SCTP stream
Incoming/outgoing Transmit
Config collects the arguments to create_association construction into a single structure
Enums
Errors in the parameters being used to create a new association
Reasons why a connection might be lost
Event resulting from processing a single datagram
Explicit congestion notification codepoint
Errors triggered during SCTP association operation
Events of interest to the application
Payload in Incoming/outgoing Transmit
PayloadProtocolIdentifier is an enum for DataChannel payload types PayloadProtocolIdentifier enums https://www.iana.org/assignments/sctp-parameters/sctp-parameters.xhtml#sctp-parameters-25
Reliability type for stream
Whether an endpoint was the initiator of a connection
Application events about streams
Type Definitions
Protocol-level identifier for a Association.