/third_party/rust/crates/rustix/src/net/ |
D | addr.rs | 43 V4(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] SocketAddrV4), 76 pub struct SocketAddrV4 { struct 138 IpAddr::V4(a) => SocketAddr::V4(SocketAddrV4::new(a, port)), in new() 280 impl SocketAddrV4 { implementation 298 pub const fn new(ip: Ipv4Addr, port: u16) -> SocketAddrV4 { in new() argument 299 SocketAddrV4 { ip, port } in new() 572 impl From<SocketAddrV4> for SocketAddr { 574 fn from(sock4: SocketAddrV4) -> SocketAddr { in from() 601 impl PartialOrd for SocketAddrV4 { implementation 602 fn partial_cmp(&self, other: &SocketAddrV4) -> Option<Ordering> { in partial_cmp() [all …]
|
D | socket_addr_any.rs | 14 use crate::net::{AddressFamily, SocketAddrV4, SocketAddrV6}; 27 V4(SocketAddrV4), 35 impl From<SocketAddrV4> for SocketAddrAny { 37 fn from(from: SocketAddrV4) -> Self { in from()
|
D | mod.rs | 36 pub use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; 41 addr::{SocketAddr, SocketAddrV4, SocketAddrV6},
|
D | socket.rs | 2 use crate::net::{SocketAddr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; 136 pub fn bind_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { in bind_v4() 243 pub fn connect_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { in connect_v4()
|
D | send_recv.rs | 5 use crate::net::{SocketAddr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; 156 addr: &SocketAddrV4, in sendto_v4() argument
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | write_sockaddr.rs | 6 use crate::net::{SocketAddrAny, SocketAddrStorage, SocketAddrUnix, SocketAddrV4, SocketAddrV6}; 20 pub(crate) unsafe fn encode_sockaddr_v4(v4: &SocketAddrV4) -> c::sockaddr_in { in encode_sockaddr_v4() 31 unsafe fn write_sockaddr_v4(v4: &SocketAddrV4, storage: *mut SocketAddrStorage) -> usize { in write_sockaddr_v4() argument
|
D | read_sockaddr.rs | 7 use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrUnix, SocketAddrV4, SocketAddrV6}; 67 Ok(SocketAddrAny::V4(SocketAddrV4::new( in read_sockaddr() 137 SocketAddrAny::V4(SocketAddrV4::new( in read_sockaddr_os()
|
D | syscalls.rs | 20 use crate::net::{SocketAddrAny, SocketAddrUnix, SocketAddrV4, SocketAddrV6}; 308 addr: &SocketAddrV4, in sendto_v4() argument 586 pub(crate) fn bind_v4(fd: BorrowedFd<'_>, addr: &SocketAddrV4) -> io::Result<()> { in bind_v4() 661 pub(crate) fn connect_v4(fd: BorrowedFd<'_>, addr: &SocketAddrV4) -> io::Result<()> { in connect_v4()
|
/third_party/rust/crates/rustix/tests/net/ |
D | v4.rs | 9 Protocol, RecvFlags, SendFlags, SocketAddrAny, SocketAddrV4, SocketType, 20 let name = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 0); in server() 55 let addr = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), port); in client()
|
D | addr.rs | 6 Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrStorage, SocketAddrV4, SocketAddrV6, in encode_decode() 10 let orig = SocketAddrV4::new(Ipv4Addr::new(2, 3, 5, 6), 33); in encode_decode()
|
D | connect_bind_send.rs | 2 AddressFamily, Ipv6Addr, Protocol, RecvFlags, SendFlags, SocketAddrAny, SocketAddrV4, 161 let addr = SocketAddrV4::new(localhost, 0).into(); in net_v4_bind_any()
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | write_sockaddr.rs | 9 use crate::net::{SocketAddrAny, SocketAddrV4, SocketAddrV6}; 24 pub(crate) unsafe fn encode_sockaddr_v4(v4: &SocketAddrV4) -> c::sockaddr_in { in encode_sockaddr_v4() 46 unsafe fn write_sockaddr_v4(v4: &SocketAddrV4, storage: *mut SocketAddrStorage) -> usize { in write_sockaddr_v4() argument
|
D | read_sockaddr.rs | 8 use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; 110 Ok(SocketAddrAny::V4(SocketAddrV4::new( in read_sockaddr() 213 SocketAddrAny::V4(SocketAddrV4::new( in inner_read_sockaddr_os()
|
D | syscalls.rs | 20 use crate::net::{SocketAddrAny, SocketAddrV4, SocketAddrV6}; 88 addr: &SocketAddrV4, in sendto_v4() argument 97 size_of::<SocketAddrV4>() as _, in sendto_v4() 175 pub(crate) fn bind_v4(sockfd: BorrowedFd<'_>, addr: &SocketAddrV4) -> io::Result<()> { in bind_v4() 208 pub(crate) fn connect_v4(sockfd: BorrowedFd<'_>, addr: &SocketAddrV4) -> io::Result<()> { in connect_v4()
|
/third_party/rust/crates/rustix/tests/io/ |
D | epoll.rs | 8 SocketAddrAny, SocketAddrV4, SocketType, 18 bind_v4(&listen_sock, &SocketAddrV4::new(Ipv4Addr::LOCALHOST, 0)).unwrap(); in server() 72 let addr = SocketAddrV4::new(Ipv4Addr::LOCALHOST, port); in client()
|
/third_party/rust/crates/nix/test/sys/ |
D | test_sockopt.rs | 98 use std::net::SocketAddrV4; in test_so_tcp_maxseg() 101 let std_sa = SocketAddrV4::from_str("127.0.0.1:4001").unwrap(); in test_so_tcp_maxseg() 271 use std::net::SocketAddrV4; in test_get_mtu() 274 let std_sa = SocketAddrV4::from_str("127.0.0.1:4001").unwrap(); in test_get_mtu() 275 let std_sb = SocketAddrV4::from_str("127.0.0.1:4002").unwrap(); in test_get_mtu()
|
D | test_socket.rs | 12 use std::net::{self, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; 305 let std_sa = SocketAddrV4::from_str("127.0.0.1:6789").unwrap(); in test_std_conversions() 369 let std_sa = SocketAddrV4::from_str("127.0.0.1:6789").unwrap(); in udp() 495 let std_sa = SocketAddrV4::from_str("127.0.0.1:6793").unwrap(); in udp_sendmmsg() 496 let std_sa2 = SocketAddrV4::from_str("127.0.0.1:6794").unwrap(); in udp_sendmmsg() 566 let inet_addr = SocketAddrV4::from_str("127.0.0.1:6798").unwrap(); in udp_recvmmsg() 637 let inet_addr = SocketAddrV4::from_str("127.0.0.1:6799").unwrap(); in udp_recvmmsg_dontwait_short_read()
|
/third_party/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 534 net::SocketAddrV4::new( 1331 impl From<net::SocketAddrV4> for SockaddrIn { 1332 fn from(addr: net::SocketAddrV4) -> Self { in from() 1354 impl From<SockaddrIn> for net::SocketAddrV4 { implementation 1356 net::SocketAddrV4::new( in from() 1368 net::SocketAddrV4::from_str(s).map(SockaddrIn::from) in from_str() 1849 impl From<net::SocketAddrV4> for SockaddrStorage { 1850 fn from(s: net::SocketAddrV4) -> Self { in from()
|
/third_party/rust/crates/serde/test_suite/tests/ |
D | test_ser.rs | 720 .parse::<net::SocketAddrV4>() in test_net_socketaddr_readable() 792 &net::SocketAddrV4::new(net::Ipv4Addr::from(*b"1234"), 1234).compact(), in test_net_socketaddr_compact()
|
D | test_de.rs | 2146 .parse::<net::SocketAddrV4>() in test_net_socketaddr_readable() 2233 net::SocketAddrV4::new(net::Ipv4Addr::from(*b"1234"), 1234).compact(), in test_net_socketaddr_compact()
|
/third_party/rust/crates/serde/serde/src/ser/ |
D | impls.rs | 915 impl Serialize for net::SocketAddrV4 { implementation
|
/third_party/rust/crates/serde/serde/src/de/ |
D | impls.rs | 1671 net::SocketAddrV4, "IPv4 socket address", 1672 |(ip, port)| net::SocketAddrV4::new(ip, port),
|
/third_party/rust/crates/nix/ |
D | CHANGELOG.md | 104 - impl `From<SockaddrIn>` for `std::net::SocketAddrV4` and
|