Home
last modified time | relevance | path

Searched defs:SocketAddr (Results 1 – 25 of 31) sorted by relevance

12

/third_party/rust/rust/library/std/src/net/
Dsocket_addr.rs186 impl ToSocketAddrs for SocketAddr { implementation
188 fn to_socket_addrs(&self) -> io::Result<option::IntoIter<SocketAddr>> { in to_socket_addrs()
196 fn to_socket_addrs(&self) -> io::Result<option::IntoIter<SocketAddr>> { in to_socket_addrs()
204 fn to_socket_addrs(&self) -> io::Result<option::IntoIter<SocketAddr>> { in to_socket_addrs()
212 fn to_socket_addrs(&self) -> io::Result<option::IntoIter<SocketAddr>> { in to_socket_addrs()
224 fn to_socket_addrs(&self) -> io::Result<option::IntoIter<SocketAddr>> { in to_socket_addrs()
233 fn to_socket_addrs(&self) -> io::Result<option::IntoIter<SocketAddr>> { in to_socket_addrs()
239 fn resolve_socket_addr(lh: LookupHost) -> io::Result<vec::IntoIter<SocketAddr>> { in resolve_socket_addr()
253 fn to_socket_addrs(&self) -> io::Result<vec::IntoIter<SocketAddr>> { in to_socket_addrs()
273 fn to_socket_addrs(&self) -> io::Result<vec::IntoIter<SocketAddr>> { in to_socket_addrs()
[all …]
Dtest.rs19 pub fn sa4(a: Ipv4Addr, p: u16) -> SocketAddr { in sa4()
23 pub fn sa6(a: Ipv6Addr, p: u16) -> SocketAddr { in sa6()
27 pub fn tsa<A: ToSocketAddrs>(a: A) -> Result<Vec<SocketAddr>, String> { in tsa()
Dudp.rs126 pub fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
155 pub fn peek_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
218 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
234 pub fn local_addr(&self) -> io::Result<SocketAddr> { in local_addr()
Dtcp.rs172 pub fn connect_timeout(addr: &SocketAddr, timeout: Duration) -> io::Result<TcpStream> { in connect_timeout()
189 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
206 pub fn local_addr(&self) -> io::Result<SocketAddr> { in local_addr()
785 pub fn local_addr(&self) -> io::Result<SocketAddr> { in local_addr()
826 pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { in accept() argument
/third_party/rust/rust/library/std/src/os/unix/net/
Daddr.rs88 pub struct SocketAddr { struct
93 impl SocketAddr { argument
109 ) -> io::Result<SocketAddr> { in from_parts()
249 impl Sealed for SocketAddr {} implementation
254 impl linux_ext::addr::SocketAddrExt for SocketAddr { implementation
287 impl fmt::Debug for SocketAddr { implementation
Ddatagram.rs284 pub fn local_addr(&self) -> io::Result<SocketAddr> { in local_addr()
308 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
316 ) -> io::Result<(usize, SocketAddr)> { in recv_from_flags() argument
358 pub fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
426 ) -> io::Result<(usize, bool, SocketAddr)> { in recv_vectored_with_ancillary_from() argument
988 pub fn peek_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
Dlistener.rs151 pub fn accept(&self) -> io::Result<(UnixStream, SocketAddr)> { in accept() argument
195 pub fn local_addr(&self) -> io::Result<SocketAddr> { in local_addr()
Dstream.rs200 pub fn local_addr(&self) -> io::Result<SocketAddr> { in local_addr()
218 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
/third_party/rust/rust/library/core/src/net/
Dsocket_addr.rs32 pub enum SocketAddr { enum
108 impl SocketAddr { impl
126 pub const fn new(ip: IpAddr, port: u16) -> SocketAddr { in new()
541 impl From<SocketAddrV4> for SocketAddr { implementation
544 fn from(sock4: SocketAddrV4) -> SocketAddr { in from()
550 impl From<SocketAddrV6> for SocketAddr { implementation
553 fn from(sock6: SocketAddrV6) -> SocketAddr { in from()
559 impl<I: Into<IpAddr>> From<(I, u16)> for SocketAddr { implementation
566 fn from(pieces: (I, u16)) -> SocketAddr { in from()
572 impl fmt::Display for SocketAddr { implementation
[all …]
Dparser.rs267 fn read_socket_addr(&mut self) -> Option<SocketAddr> { in read_socket_addr()
411 impl SocketAddr { impl
432 impl FromStr for SocketAddr { implementation
434 fn from_str(s: &str) -> Result<SocketAddr, AddrParseError> { in from_str()
/third_party/rust/crates/rustix/src/net/
Daddr.rs40 pub enum SocketAddr { enum
116 impl SocketAddr { implementation
136 pub const fn new(ip: IpAddr, port: u16) -> SocketAddr { in new()
572 impl From<SocketAddrV4> for SocketAddr { implementation
574 fn from(sock4: SocketAddrV4) -> SocketAddr { in from()
580 impl From<SocketAddrV6> for SocketAddr { implementation
582 fn from(sock6: SocketAddrV6) -> SocketAddr { in from()
588 impl<I: Into<IpAddr>> From<(I, u16)> for SocketAddr { implementation
595 fn from(pieces: (I, u16)) -> SocketAddr { in from()
Dsend_recv.rs84 addr: &SocketAddr, in sendto()
93 addr: &SocketAddr, in _sendto()
/third_party/rust/rust/library/core/tests/net/
Dmod.rs7 pub fn sa4(a: Ipv4Addr, p: u16) -> SocketAddr { in sa4()
11 pub fn sa6(a: Ipv6Addr, p: u16) -> SocketAddr { in sa6()
/third_party/rust/rust/library/std/src/sys/unix/
Dl4re.rs25 pub fn new(_: &SocketAddr, _: libc::c_int) -> io::Result<Socket> { in new()
37 pub fn connect_timeout(&self, _: &SocketAddr, _: Duration) -> io::Result<()> { in connect_timeout()
69 pub fn recv_from(&self, _: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
73 pub fn peek_from(&self, _: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
184 pub fn connect_timeout(_: &SocketAddr, _: Duration) -> io::Result<TcpStream> { in connect_timeout()
245 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
249 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
324 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
328 pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { in accept() argument
391 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
[all …]
Dnet.rs62 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
141 pub fn connect_timeout(&self, addr: &SocketAddr, timeout: Duration) -> io::Result<()> { in connect_timeout()
289 ) -> io::Result<(usize, SocketAddr)> { in recv_from_with_flags() argument
306 pub fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
316 pub fn peek_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
/third_party/rust/rust/library/std/src/sys/unsupported/
Dnet.rs14 pub fn connect_timeout(_: &SocketAddr, _: Duration) -> io::Result<TcpStream> { in connect_timeout()
66 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
70 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
128 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
132 pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { in accept() argument
178 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
182 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
186 pub fn recv_from(&self, _: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
190 pub fn peek_from(&self, _: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
315 fn next(&mut self) -> Option<SocketAddr> { in next()
/third_party/rust/rust/library/std/src/sys/sgx/
Dnet.rs83 fn addr_to_sockaddr(addr: &Option<String>) -> io::Result<SocketAddr> { in addr_to_sockaddr()
98 pub fn connect_timeout(addr: &SocketAddr, dur: Duration) -> io::Result<TcpStream> { in connect_timeout()
174 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
178 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
268 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
272 pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { in accept() argument
334 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
338 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
342 pub fn recv_from(&self, _: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
346 pub fn peek_from(&self, _: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
[all …]
/third_party/rust/rust/library/std/src/sys_common/
Dnet.rs106 pub fn sockaddr_to_addr(storage: &c::sockaddr_storage, len: usize) -> io::Result<SocketAddr> { in sockaddr_to_addr()
152 fn next(&mut self) -> Option<SocketAddr> { in next()
234 pub fn connect_timeout(addr: &SocketAddr, timeout: Duration) -> io::Result<TcpStream> { in connect_timeout()
305 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
309 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
441 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
445 pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { in accept() argument
532 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
536 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
540 pub fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
[all …]
/third_party/rust/rust/library/std/src/sys/wasi/
Dnet.rs68 pub fn connect_timeout(_: &SocketAddr, _: Duration) -> io::Result<TcpStream> { in connect_timeout()
120 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
124 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
220 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
224 pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> { in accept() argument
324 pub fn peer_addr(&self) -> io::Result<SocketAddr> { in peer_addr()
328 pub fn socket_addr(&self) -> io::Result<SocketAddr> { in socket_addr()
332 pub fn recv_from(&self, _: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
336 pub fn peek_from(&self, _: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
489 fn next(&mut self) -> Option<SocketAddr> { in next()
/third_party/rust/rust/library/std/src/sys/hermit/
Dnet.rs48 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new()
65 pub fn connect_timeout(&self, addr: &SocketAddr, timeout: Duration) -> io::Result<()> { in connect_timeout()
200 fn recv_from_with_flags(&self, buf: &mut [u8], flags: i32) -> io::Result<(usize, SocketAddr)> { in recv_from_with_flags() argument
217 pub fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
221 pub fn peek_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
/third_party/rust/rust/library/std/src/sys/windows/
Dnet.rs103 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
143 pub fn connect_timeout(&self, addr: &SocketAddr, timeout: Duration) -> io::Result<()> { in connect_timeout()
299 ) -> io::Result<(usize, SocketAddr)> { in recv_from_with_flags() argument
331 pub fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
335 pub fn peek_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
/third_party/rust/rust/library/std/src/sys/solid/
Dnet.rs213 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
231 pub fn connect_timeout(&self, addr: &SocketAddr, timeout: Duration) -> io::Result<()> { in connect_timeout()
337 ) -> io::Result<(usize, SocketAddr)> { in recv_from_with_flags() argument
354 pub fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in recv_from() argument
358 pub fn peek_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> { in peek_from() argument
/third_party/rust/rust/src/tools/rustfmt/tests/source/configs/indent_style/
Dblock_args.rs25 fn deconstruct(foo: Bar) -> (SocketAddr, Header, Method, RequestUri, HttpVersion, AAAAAAAAAAAAAAAAA… in deconstruct()
/third_party/rust/rust/src/tools/rustfmt/tests/target/configs/indent_style/
Dblock_args.rs40 SocketAddr, in deconstruct()
/third_party/rust/rust/library/std/src/net/udp/
Dtests.rs8 fn each_ip(f: &mut dyn FnMut(SocketAddr, SocketAddr)) { in each_ip()

12