Make UdpSocket use DGRAM
This commit is contained in:
parent
8f944aaf19
commit
61732c97b6
|
@ -47,7 +47,7 @@ impl UdpSocket {
|
|||
|
||||
let sock = rustix::net::socket_with(
|
||||
family,
|
||||
SocketType::STREAM,
|
||||
SocketType::DGRAM,
|
||||
SocketFlags::NONBLOCK | SocketFlags::CLOEXEC,
|
||||
Protocol::UDP,
|
||||
)?;
|
||||
|
|
Loading…
Reference in a new issue