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
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.
bytes_sent returns the number of bytes sent
bytes_received returns the number of bytes received
pub async fn open_stream(
&self,
stream_identifier: u16,
default_payload_type: PayloadProtocolIdentifier
) -> Result<Arc<Stream>>
pub async fn open_stream(
&self,
stream_identifier: u16,
default_payload_type: PayloadProtocolIdentifier
) -> Result<Arc<Stream>>
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
impl !RefUnwindSafe for Association
impl Send for Association
impl Sync for Association
impl Unpin for Association
impl !UnwindSafe for Association