问题描述
我使用 rust-wasm 并且我想使用 std::net 获取 RTSP 链接数据, 但是我的 Tcpstream 有一个无效的端口错误
#![allow(unused)]
use std::io::prelude::*;
use std::net::Tcpstream;
fn main() -> std::io::Result<()> {
let mut stream = Tcpstream::connect("rtsp://user:pass@192.168.2.206:554/Streaming/Channels/101")?;
stream.write(&[1])?;
stream.read(&mut [0; 128])?;
Ok(())
} // the stream is closed here
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)