Struct webrtc_sctp::association::Association[][src]

pub struct Association { /* fields omitted */ }
Expand description

Association represents an SCTP association 13.2. Parameters Necessary per Association (i.e., the TCB) Peer : Tag value to be sent in every packet and is received Verification: in the INIT or INIT ACK chunk. Tag :

My : Tag expected in every inbound packet and sent in the Verification: INIT or INIT ACK chunk.

Tag : State : A state variable indicating what state the association : is in, i.e., COOKIE-WAIT, COOKIE-ECHOED, ESTABLISHED, : SHUTDOWN-PENDING, SHUTDOWN-SENT, SHUTDOWN-RECEIVED, : SHUTDOWN-ACK-SENT.

No Closed state is illustrated since if a association is Closed its TCB SHOULD be removed.

Implementations

server accepts a SCTP stream over a conn

Client opens a SCTP stream over a conn

Shutdown initiates the shutdown sequence. The method blocks until the shutdown sequence is completed and the connection is closed, or until the passed context is done, in which case the context’s error is returned.

Close ends the SCTP Association and cleans up any state

bytes_sent returns the number of bytes sent

bytes_received returns the number of bytes received

open_stream opens a stream

accept_stream accepts a stream

max_message_size returns the maximum message size you can send.

set_max_message_size sets the maximum message size you can send.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.