Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions quinn-udp/src/fallback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ impl UdpSocketState {
pub fn may_fragment(&self) -> bool {
true
}

/// Stub: Apple's fast UDP datapath is not available on this platform.
///
/// # Safety
///
/// No-op on this platform. Present for API compatibility with the Unix implementation.
pub unsafe fn set_apple_fast_path(&self) {}

/// Returns whether Apple's fast UDP datapath is enabled for this socket.
///
/// Always returns `false` on this platform.
pub fn is_apple_fast_path_enabled(&self) -> bool {
false
}
}

fn send(socket: UdpSockRef<'_>, transmit: &Transmit<'_>) -> io::Result<()> {
Expand Down
14 changes: 14 additions & 0 deletions quinn-udp/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,20 @@ impl UdpSocketState {
pub fn may_fragment(&self) -> bool {
false
}

/// Stub: Apple's fast UDP datapath is not available on Windows.
///
/// # Safety
///
/// No-op on Windows. Present for API compatibility with the Unix implementation.
pub unsafe fn set_apple_fast_path(&self) {}

/// Returns whether Apple's fast UDP datapath is enabled for this socket.
///
/// Always returns `false` on Windows.
pub fn is_apple_fast_path_enabled(&self) -> bool {
false
}
}

fn send(
Expand Down