mirror of https://github.com/stjepang/smol
change to modify socket with notifier.
This commit is contained in:
parent
2071f2a481
commit
19a1a11583
|
@ -168,7 +168,7 @@ fn notifier() -> io::Result<(Notifier, Notifier)> {
|
|||
|
||||
/// Creates a pair of connected sockets.
|
||||
#[cfg(windows)]
|
||||
fn notifier() -> io::Result<(Socket, Socket)> {
|
||||
fn notifier() -> io::Result<(Notifier, Notifier)> {
|
||||
// Create a temporary listener.
|
||||
let listener = Socket::new(Domain::ipv4(), Type::stream(), None)?;
|
||||
listener.bind(&SocketAddr::from(([127, 0, 0, 1], 0)).into())?;
|
||||
|
|
Loading…
Reference in New Issue