Home
last modified time | relevance | path

Searched refs:TcpListener (Results 1 – 25 of 46) sorted by relevance

12

/external/rust/crates/tokio/src/net/tcp/
Dlistener.rs52 pub struct TcpListener {
53 io: PollEvented<mio::net::TcpListener>,
57 impl TcpListener { implementation
97 pub async fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<TcpListener> { in bind() argument
103 match TcpListener::bind_addr(addr) { in bind()
117 fn bind_addr(addr: SocketAddr) -> io::Result<TcpListener> { in bind_addr() argument
118 let listener = mio::net::TcpListener::bind(addr)?; in bind_addr()
119 TcpListener::new(listener) in bind_addr()
217 pub fn from_std(listener: net::TcpListener) -> io::Result<TcpListener> { in from_std() argument
218 let io = mio::net::TcpListener::from_std(listener); in from_std()
[all …]
Dsocket.rs1 use crate::net::{TcpListener, TcpStream};
481 pub fn listen(self, backlog: u32) -> io::Result<TcpListener> { in listen() argument
483 TcpListener::new(mio) in listen()
/external/rust/crates/mio/src/net/tcp/
Dlistener.rs38 pub struct TcpListener { struct
39 inner: IoSource<net::TcpListener>, argument
42 impl TcpListener { impl
52 pub fn bind(addr: SocketAddr) -> io::Result<TcpListener> { in bind() argument
75 pub fn from_std(listener: net::TcpListener) -> TcpListener { in from_std() argument
76 TcpListener { in from_std()
127 impl event::Source for TcpListener { implementation
151 impl fmt::Debug for TcpListener { implementation
158 impl IntoRawFd for TcpListener { implementation
165 impl AsRawFd for TcpListener { implementation
[all …]
Dsocket.rs10 use crate::net::{TcpListener, TcpStream};
91 pub fn listen(self, backlog: u32) -> io::Result<TcpListener> { in listen() argument
96 Ok(TcpListener::from_std(listener)) in listen()
/external/rust/crates/tokio-stream/src/wrappers/
Dtcp_listener.rs5 use tokio::net::{TcpListener, TcpStream};
14 inner: TcpListener,
19 pub fn new(listener: TcpListener) -> Self { in new()
24 pub fn into_inner(self) -> TcpListener { in into_inner() argument
44 impl AsRef<TcpListener> for TcpListenerStream {
45 fn as_ref(&self) -> &TcpListener { in as_ref() argument
50 impl AsMut<TcpListener> for TcpListenerStream {
51 fn as_mut(&mut self) -> &mut TcpListener { in as_mut() argument
/external/rust/crates/tokio/tests/
Dtcp_connect.rs4 use tokio::net::{TcpListener, TcpStream};
12 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in connect_v4()
39 let srv = assert_ok!(TcpListener::bind("[::1]:0").await); in connect_v6()
66 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in connect_addr_ip_string()
83 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in connect_addr_ip_str_slice()
100 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in connect_addr_host_string()
117 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in connect_addr_ip_port_tuple()
134 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in connect_addr_ip_str_port_tuple()
151 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in connect_addr_host_str_port_tuple()
Dio_driver_drop.rs4 use tokio::net::TcpListener;
14 let listener = std::net::TcpListener::bind("127.0.0.1:0").unwrap(); in tcp_doesnt_block()
15 TcpListener::from_std(listener).unwrap() in tcp_doesnt_block()
33 let listener = std::net::TcpListener::bind("127.0.0.1:0").unwrap(); in drop_wakes()
34 TcpListener::from_std(listener).unwrap() in drop_wakes()
Dno_rt.rs7 use std::net::TcpListener;
22 let srv = TcpListener::bind("127.0.0.1:0").unwrap(); in panics_when_no_reactor()
38 let _ = tokio::net::TcpListener::from_std(std::net::TcpListener::bind("127.0.0.1:0").unwrap()); in io_panics_when_no_tokio_context()
Dnet_bind_resource.rs4 use tokio::net::TcpListener;
12 let listener = net::TcpListener::bind("127.0.0.1:0").expect("failed to bind listener"); in no_runtime_panics_binding_net_tcp_listener()
13 let _ = TcpListener::try_from(listener); in no_runtime_panics_binding_net_tcp_listener()
Dio_driver.rs4 use tokio::net::TcpListener;
58 let listener = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in test_drop_on_notify()
97 tokio::net::TcpListener::from_std(std::net::TcpListener::bind("127.0.0.1:0").unwrap()); in panics_when_io_disabled()
Dtcp_accept.rs4 use tokio::net::{TcpListener, TcpStream};
16 let listener = assert_ok!(TcpListener::bind($target).await);
53 listener: &'a mut TcpListener,
67 let mut listener = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in no_extra_poll()
105 let listener = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in accept_many()
Dtcp_into_split.rs9 use tokio::net::{TcpListener, TcpStream};
16 let listener = TcpListener::bind("127.0.0.1:0").await?; in split()
58 let listener = net::TcpListener::bind("127.0.0.1:0")?; in reunite()
88 let listener = net::TcpListener::bind("127.0.0.1:0")?; in drop_write()
Dtcp_stream.rs5 use tokio::net::{TcpListener, TcpStream};
18 let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); in set_linger()
36 let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); in try_read_write()
206 let listener = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in create_pair()
243 let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); in try_read_buf()
Dtcp_shutdown.rs5 use tokio::net::{TcpListener, TcpStream};
10 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in shutdown()
Dtcp_into_std.rs7 use tokio::net::TcpListener;
13 let listener = TcpListener::bind("127.0.0.1:34254").await?; in tcp_into_std()
Dtcp_echo.rs5 use tokio::net::{TcpListener, TcpStream};
15 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in echo_server()
Dbuffered.rs4 use tokio::net::TcpListener;
15 let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); in echo_server()
/external/rust/crates/async-stream/examples/
Dtcp_accept.rs4 use tokio::net::TcpListener;
8 let mut listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); in main()
/external/rust/crates/flate2/tests/
Dtokio.rs12 use std::net::{Shutdown, TcpListener};
29 let listener = TcpListener::bind("127.0.0.1:0").unwrap(); in tcp_stream_echo_pattern()
85 let listener = TcpListener::bind("127.0.0.1:0").unwrap(); in echo_random()
/external/rust/crates/gdbstub/examples/armv4t/
Dmain.rs1 use std::net::{TcpListener, TcpStream};
20 let sock = TcpListener::bind(sockaddr)?; in wait_for_tcp()
/external/rust/crates/gdbstub/examples/armv4t_multicore/
Dmain.rs1 use std::net::{TcpListener, TcpStream};
20 let sock = TcpListener::bind(sockaddr)?; in wait_for_tcp()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DDebugEventSocketProxy.cs43 using TcpListener = System.Net.Sockets.TcpListener; typedef
56 protected TcpListener serverSocket;
98 serverSocket = new TcpListener(ipAddress, port); in Handshake()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DDebugEventSocketProxy.cs42 using TcpListener = System.Net.Sockets.TcpListener; typedef
56 protected TcpListener serverSocket;
105 serverSocket = new TcpListener( ipAddress, port ); in Handshake()
/external/libchromeos-rs/src/
Dnet.rs8 use std::net::{SocketAddr, SocketAddrV4, SocketAddrV6, TcpListener, TcpStream, ToSocketAddrs};
172 pub fn listen(self) -> io::Result<TcpListener> { in listen() argument
181 Ok(unsafe { TcpListener::from_raw_fd(self.into_raw_fd()) }) in listen()
/external/rust/crates/mio/src/sys/shell/
Dtcp.rs24 pub(crate) fn listen(_: TcpSocket, _: u32) -> io::Result<net::TcpListener> { in listen() argument
121 pub fn accept(_: &net::TcpListener) -> io::Result<(net::TcpStream, SocketAddr)> { in accept()

12