We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3157e6e commit 3824219Copy full SHA for 3824219
src/socket/udp.rs
@@ -743,6 +743,17 @@ mod test {
743
assert_eq!(socket.send_slice(b"abcdef", REMOTE_END), Ok(()));
744
}
745
746
+ #[test]
747
+ fn test_send_with_source() {
748
+ let mut socket = socket(buffer(0), buffer(1));
749
+
750
+ assert_eq!(socket.bind(LOCAL_PORT), Ok(()));
751
+ assert_eq!(
752
+ socket.send_slice(b"abcdef", remote_metadata_with_local()),
753
+ Ok(())
754
+ );
755
+ }
756
757
#[rstest]
758
#[case::ip(Medium::Ip)]
759
#[cfg(feature = "medium-ip")]
0 commit comments