Struct sctp::SctpStream [] [src]

pub struct SctpStream(_);

One-to-one SCTP connected stream which behaves like a TCP stream. A SctpStream can be obtained either actively by connecting to a SCTP endpoint with the connect constructor, or passively from a SctpListener which accepts new connections

Methods

impl SctpStream
[src]

Create a new stream by connecting it to a remote endpoint

Create a new stream by connecting it to a remote endpoint having multiple addresses

Send bytes on the specified SCTP stream. On success, returns the quantity of bytes read

Read bytes. On success, return a tuple with the quantity of bytes received and the stream they were recived on

Return the list of local socket addresses for this stream

Return the list of socket addresses for the peer this stream is connected to

Shuts down the read, write, or both halves of this connection

Set or unset SCTP_NODELAY option

Verify if SCTP_NODELAY option is activated for this socket

Set the socket buffer size for the direction specified by dir. Linux systems will double the provided size

Get the socket buffer size for the direction specified by dir

Set timeout in seconds for operation dir (either receive or send)

Try to clone the SctpStream. On success, returns a new stream wrapping a new socket handler

Trait Implementations

impl Read for SctpStream
[src]

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read all bytes until EOF in this source, placing them into buf. Read more

Read the exact number of bytes required to fill buf. Read more

Creates a "by reference" adaptor for this instance of Read. Read more

Transforms this Read instance to an Iterator over its bytes. Read more

🔬 This is a nightly-only experimental API. (io)

the semantics of a partial read/write of where errors happen is currently unclear and may change

Transforms this Read instance to an Iterator over chars. Read more

Creates an adaptor which will chain this stream with another. Read more

Creates an adaptor which will read at most limit bytes from it. Read more

impl Write for SctpStream
[src]

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a "by reference" adaptor for this instance of Write. Read more

impl AsRawFd for SctpStream
[src]

Extracts the raw file descriptor. Read more

impl FromRawFd for SctpStream
[src]

Constructs a new instance of Self from the given raw file descriptor. Read more