/external/rust/crates/mio/src/sys/shell/ |
D | tcp.rs | 6 pub(crate) type TcpSocket = i32; typedef 8 pub(crate) fn new_v4_socket() -> io::Result<TcpSocket> { in new_v4_socket() 12 pub(crate) fn new_v6_socket() -> io::Result<TcpSocket> { in new_v6_socket() 16 pub(crate) fn bind(_socket: TcpSocket, _addr: SocketAddr) -> io::Result<()> { in bind() argument 20 pub(crate) fn connect(_: TcpSocket, _addr: SocketAddr) -> io::Result<net::TcpStream> { in connect() argument 24 pub(crate) fn listen(_: TcpSocket, _: u32) -> io::Result<net::TcpListener> { in listen() argument 28 pub(crate) fn close(_: TcpSocket) { in close() argument 32 pub(crate) fn set_reuseaddr(_: TcpSocket, _: bool) -> io::Result<()> { in set_reuseaddr() argument 36 pub(crate) fn get_reuseaddr(_: TcpSocket) -> io::Result<bool> { in get_reuseaddr() 41 pub(crate) fn set_reuseport(_: TcpSocket, _: bool) -> io::Result<()> { in set_reuseport() argument [all …]
|
/external/rust/crates/tokio/src/net/tcp/ |
D | socket.rs | 84 pub struct TcpSocket { 85 inner: mio::net::TcpSocket, 89 impl TcpSocket { impl 119 pub fn new_v4() -> io::Result<TcpSocket> { in new_v4() 120 let inner = mio::net::TcpSocket::new_v4()?; in new_v4() 121 Ok(TcpSocket { inner }) in new_v4() 153 pub fn new_v6() -> io::Result<TcpSocket> { in new_v6() 154 let inner = mio::net::TcpSocket::new_v6()?; in new_v6() 155 Ok(TcpSocket { inner }) in new_v6() 487 impl fmt::Debug for TcpSocket { implementation [all …]
|
D | stream.rs | 929 fn to_mio(&self) -> mio::net::TcpSocket { in to_mio() argument 933 unsafe { mio::net::TcpSocket::from_raw_socket(self.as_raw_socket()) } in to_mio() 939 unsafe { mio::net::TcpSocket::from_raw_fd(self.as_raw_fd()) } in to_mio()
|
/external/rust/crates/mio/src/net/tcp/ |
D | socket.rs | 21 pub struct TcpSocket { struct 22 sys: sys::tcp::TcpSocket, argument 48 impl TcpSocket { implementation 52 pub fn new_v4() -> io::Result<TcpSocket> { in new_v4() 53 sys::tcp::new_v4_socket().map(|sys| TcpSocket { sys }) in new_v4() 59 pub fn new_v6() -> io::Result<TcpSocket> { in new_v6() 60 sys::tcp::new_v6_socket().map(|sys| TcpSocket { sys }) in new_v6() 63 pub(crate) fn new_for_addr(addr: SocketAddr) -> io::Result<TcpSocket> { in new_for_addr() argument 65 TcpSocket::new_v4() in new_for_addr() 67 TcpSocket::new_v6() in new_for_addr() [all …]
|
D | listener.rs | 8 use super::{TcpSocket, TcpStream}; 53 let socket = TcpSocket::new_for_addr(addr)?; in bind()
|
D | mod.rs | 5 pub use self::socket::{TcpSocket, TcpKeepalive};
|
D | stream.rs | 10 use crate::net::TcpSocket; 53 let socket = TcpSocket::new_for_addr(addr)?; in connect()
|
/external/rust/crates/mio/src/sys/unix/ |
D | tcp.rs | 24 pub type TcpSocket = libc::c_int; typedef 26 pub(crate) fn new_v4_socket() -> io::Result<TcpSocket> { in new_v4_socket() 30 pub(crate) fn new_v6_socket() -> io::Result<TcpSocket> { in new_v6_socket() 34 pub(crate) fn bind(socket: TcpSocket, addr: SocketAddr) -> io::Result<()> { in bind() argument 40 pub(crate) fn connect(socket: TcpSocket, addr: SocketAddr) -> io::Result<net::TcpStream> { in connect() argument 53 pub(crate) fn listen(socket: TcpSocket, backlog: u32) -> io::Result<net::TcpListener> { in listen() argument 59 pub(crate) fn close(socket: TcpSocket) { in close() argument 63 pub(crate) fn set_reuseaddr(socket: TcpSocket, reuseaddr: bool) -> io::Result<()> { in set_reuseaddr() argument 75 pub(crate) fn get_reuseaddr(socket: TcpSocket) -> io::Result<bool> { in get_reuseaddr() 91 pub(crate) fn set_reuseport(socket: TcpSocket, reuseport: bool) -> io::Result<()> { in set_reuseport() argument [all …]
|
/external/rust/crates/mio/src/sys/windows/ |
D | tcp.rs | 24 pub(crate) type TcpSocket = SOCKET; typedef 26 pub(crate) fn new_v4_socket() -> io::Result<TcpSocket> { in new_v4_socket() 31 pub(crate) fn new_v6_socket() -> io::Result<TcpSocket> { in new_v6_socket() 36 pub(crate) fn bind(socket: TcpSocket, addr: SocketAddr) -> io::Result<()> { in bind() argument 48 pub(crate) fn connect(socket: TcpSocket, addr: SocketAddr) -> io::Result<net::TcpStream> { in connect() argument 69 pub(crate) fn listen(socket: TcpSocket, backlog: u32) -> io::Result<net::TcpListener> { in listen() argument 78 pub(crate) fn close(socket: TcpSocket) { in close() argument 82 pub(crate) fn set_reuseaddr(socket: TcpSocket, reuseaddr: bool) -> io::Result<()> { in set_reuseaddr() argument 97 pub(crate) fn get_reuseaddr(socket: TcpSocket) -> io::Result<bool> { in get_reuseaddr() 113 pub(crate) fn get_localaddr(socket: TcpSocket) -> io::Result<SocketAddr> { in get_localaddr() [all …]
|
/external/rust/crates/tokio/tests/ |
D | tcp_socket.rs | 4 use tokio::net::TcpSocket; 11 let srv = assert_ok!(TcpSocket::new_v4()); in basic_usage_v4() 18 let cli = assert_ok!(TcpSocket::new_v4()); in basic_usage_v4() 29 let srv = assert_ok!(TcpSocket::new_v6()); in basic_usage_v6() 36 let cli = assert_ok!(TcpSocket::new_v6()); in basic_usage_v6() 47 let srv = assert_ok!(TcpSocket::new_v4()); in bind_before_connect() 54 let cli = assert_ok!(TcpSocket::new_v4()); in bind_before_connect()
|
/external/libchromeos-rs/src/ |
D | net.rs | 70 pub struct TcpSocket { struct 75 impl TcpSocket { argument 87 Ok(TcpSocket { inet_version, fd }) in new() 249 impl IntoRawFd for TcpSocket { implementation 257 impl AsRawFd for TcpSocket { implementation 263 impl Drop for TcpSocket { implementation
|
/external/rust/crates/mio/ |
D | CHANGELOG.md | 72 * Added keepalive support to `TcpSocket` 74 * `TcpSocket::set_{send, recv}_buffer_size` 76 * `TcpSocket::get_linger` 78 * Implement `IntoRawFd` for `TcpSocket` 104 * `TcpSocket::get_localaddr()` retrieves local address 106 * `TcpSocket::set_reuseport()` & `TcpSocket::get_reuseport()` configures and reads `SO_REUSEPORT` 124 * `TcpSocket::set_linger()` configures SO_LINGER 131 * `TcpSocket` for configuring a TCP socket before connecting or listening 447 * `TcpSocket` is no longer exported in the public API (#262)
|
/external/rust/crates/mio/src/net/ |
D | mod.rs | 11 pub use self::tcp::{TcpListener, TcpSocket, TcpStream, TcpKeepalive};
|
/external/rust/crates/tokio/src/net/ |
D | mod.rs | 36 pub use tcp::socket::TcpSocket;
|
/external/crosvm/sys_util/src/ |
D | net.rs | 83 pub struct TcpSocket { struct 88 impl TcpSocket { impl 100 Ok(TcpSocket { inet_version, fd }) in new() 262 impl IntoRawFd for TcpSocket { implementation 270 impl AsRawFd for TcpSocket { implementation 276 impl Drop for TcpSocket { implementation
|
/external/rust/crates/tokio/ |
D | CHANGELOG.md | 8 - net: implement `IntoRawFd` for `TcpSocket` ([#3684]) 394 - net: `TcpSocket::reuseport()`, `TcpSocket::set_reuseport()` ([#3083]). 395 - net: `TcpSocket::reuseaddr()` ([#3093]). 396 - net: `TcpSocket::local_addr()` ([#3093]). 509 - net: `TcpSocket` creates a socket without binding or listening ([#2920]).
|