Skip to content

Can't properly send data through Write. #7

@ghost

Description

On the client I sent data through SctpStream's Write impl.
On the server side I tried to read it using:

let sock = sctp::SctpEndpoint::bind("127.0.0.1:2000").unwrap();
loop{
let mut v = Vec::new();
sock.recv_from(&mut v[..]).unwrap();
println!("msg: {}", std::str::from_utf8(&v[..]).unwrap());
}

This returns the error:

thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 0, kind: Other, message: "Success" }', libcore/result.rs:1009:5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions