Home
last modified time | relevance | path

Searched refs:SocketType (Results 1 – 25 of 27) sorted by relevance

12

/third_party/rust/crates/rustix/tests/net/
Dconnect_bind_send.rs3 SocketAddrV6, SocketType,
13 rustix::net::socket(AddressFamily::INET, SocketType::STREAM, Protocol::default())?; in net_v4_connect_any()
18 let sender = rustix::net::socket(AddressFamily::INET, SocketType::STREAM, Protocol::default())?; in net_v4_connect_any()
46 SocketType::STREAM, in net_v6_connect_any()
55 SocketType::STREAM, in net_v6_connect_any()
84 rustix::net::socket(AddressFamily::INET, SocketType::STREAM, Protocol::default())?; in net_v4_connect()
93 let sender = rustix::net::socket(AddressFamily::INET, SocketType::STREAM, Protocol::default())?; in net_v4_connect()
121 SocketType::STREAM, in net_v6_connect()
134 SocketType::STREAM, in net_v6_connect()
163 rustix::net::socket(AddressFamily::INET, SocketType::STREAM, Protocol::default())?; in net_v4_bind_any()
[all …]
Dunix.rs20 SocketType,
33 SocketType::SEQPACKET, in server()
87 SocketType::SEQPACKET, in client()
107 SocketType::SEQPACKET, in client()
Dv4.rs9 Protocol, RecvFlags, SendFlags, SocketAddrAny, SocketAddrV4, SocketType,
18 socket(AddressFamily::INET, SocketType::STREAM, Protocol::default()).unwrap(); in server()
58 let data_socket = socket(AddressFamily::INET, SocketType::STREAM, Protocol::default()).unwrap(); in client()
Dv6.rs9 Protocol, RecvFlags, SendFlags, SocketAddrAny, SocketAddrV6, SocketType,
19 SocketType::STREAM, in server()
64 SocketType::STREAM, in client()
Dsockopt.rs3 use rustix::net::{AddressFamily, Protocol, SocketType}; in test_sockopts()
7 rustix::net::socket(AddressFamily::INET, SocketType::STREAM, Protocol::default()).unwrap(); in test_sockopts()
17 SocketType::STREAM in test_sockopts()
Dpoll.rs8 Protocol, RecvFlags, SendFlags, SocketAddrAny, SocketAddrV6, SocketType,
18 SocketType::STREAM, in server()
76 SocketType::STREAM, in client()
/third_party/rust/crates/rustix/src/net/
Dsocketpair.rs2 use crate::net::{AddressFamily, Protocol, SocketFlags, SocketType};
16 type_: SocketType, in socketpair() argument
Dsocket.rs9 AcceptFlags, AddressFamily, Protocol, Shutdown, SocketFlags, SocketType,
38 pub fn socket(domain: AddressFamily, type_: SocketType, protocol: Protocol) -> io::Result<OwnedFd> { in socket() argument
65 type_: SocketType, in socket_with() argument
Dmod.rs30 socket_with, AcceptFlags, AddressFamily, Protocol, Shutdown, SocketFlags, SocketType,
Dsockopt.rs9 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType};
34 pub fn get_socket_type<Fd: AsFd>(fd: Fd) -> io::Result<SocketType> { in get_socket_type() argument
/third_party/rust/crates/rustix/tests/io/
Depoll.rs8 SocketAddrAny, SocketAddrV4, SocketType,
17 let listen_sock = socket(AddressFamily::INET, SocketType::STREAM, Protocol::default()).unwrap(); in server()
77 socket(AddressFamily::INET, SocketType::STREAM, Protocol::default()).unwrap(); in client()
/third_party/node/src/
Dpipe_wrap.h37 enum SocketType { enum
45 SocketType type);
Dtcp_wrap.h37 enum SocketType { enum
44 SocketType type);
Dpipe_wrap.cc52 PipeWrap::SocketType type) { in Instantiate()
131 PipeWrap::SocketType type = static_cast<PipeWrap::SocketType>(type_value); in New()
Dudp_wrap.h122 enum SocketType { enum
177 SocketType type);
Dtcp_wrap.cc58 TCPWrap::SocketType type) { in Instantiate()
159 TCPWrap::SocketType type = static_cast<TCPWrap::SocketType>(type_value); in New()
Dudp_wrap.cc781 UDPWrap::SocketType type) { in Instantiate()
/third_party/node/deps/openssl/openssl/apps/lib/
Dvms_term_sock.c283 int SocketType, in CreateSocketPair() argument
312 SockDesc1 = socket (SocketFamily, SocketType, 0); in CreateSocketPair()
402 SockDesc2 = socket (SocketFamily, SocketType, 0); in CreateSocketPair()
/third_party/openssl/apps/lib/
Dvms_term_sock.c283 int SocketType, in CreateSocketPair() argument
312 SockDesc1 = socket (SocketFamily, SocketType, 0); in CreateSocketPair()
402 SockDesc2 = socket (SocketFamily, SocketType, 0); in CreateSocketPair()
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
Dtypes.rs13 pub struct SocketType(pub(crate) RawSocketType); struct
16 impl SocketType { impl
Dsyscalls.rs16 use super::types::{AcceptFlags, AddressFamily, Protocol, Shutdown, SocketFlags, SocketType};
38 type_: SocketType, in socket() argument
62 type_: SocketType, in socket_with() argument
92 type_: SocketType, in socketpair() argument
755 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType};
859 pub(crate) fn get_socket_type(fd: BorrowedFd<'_>) -> io::Result<SocketType> { in get_socket_type() argument
/third_party/rust/crates/rustix/src/backend/libc/net/
Dsyscalls.rs15 use super::types::{AcceptFlags, AddressFamily, Protocol, Shutdown, SocketFlags, SocketType};
146 type_: SocketType, in socket() argument
161 type_: SocketType, in socket_with() argument
374 type_: SocketType, in socketpair() argument
397 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType};
466 pub(crate) fn get_socket_type(fd: BorrowedFd<'_>) -> io::Result<SocketType> { in get_socket_type() argument
Dtypes.rs13 pub struct SocketType(pub(crate) RawSocketType); struct
16 impl SocketType { impl
/third_party/rust/crates/rustix/src/backend/linux_raw/
Dconv.rs618 impl<'a, Num: ArgNumber> From<(crate::net::SocketType, crate::net::SocketFlags)>
622 fn from(pair: (crate::net::SocketType, crate::net::SocketFlags)) -> Self { in from() argument
646 impl<'a, Num: ArgNumber> From<crate::net::SocketType> for ArgReg<'a, Num> {
648 fn from(type_: crate::net::SocketType) -> Self { in from()
/third_party/python/Lib/test/
Dtest_socket.py832 self.assertTrue(socket.SocketType is _socket.socket)
834 self.assertIsInstance(s, socket.SocketType)

12