Home
last modified time | relevance | path

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

/external/perfetto/include/perfetto/ext/base/
Dunix_socket.h63 enum class SockType { kStream = 100, kDgram, kSeqPacket }; enum
91 static UnixSocketRaw CreateMayFail(SockFamily family, SockType type);
96 SockType);
104 UnixSocketRaw(ScopedSocketHandle, SockFamily, SockType);
119 SockType type() const { return type_; } in type()
163 UnixSocketRaw(SockFamily, SockType);
173 SockType type_ = SockType::kStream;
258 SockType);
266 SockType);
276 SockType,
[all …]
/external/rust/crates/nix/test/sys/
Dtest_socket.rs138 use nix::sys::socket::{socket, AddressFamily, SockType, SockFlag}; in test_getsockname()
143 let sock = socket(AddressFamily::Unix, SockType::Stream, SockFlag::empty(), None) in test_getsockname()
154 use nix::sys::socket::{socketpair, AddressFamily, SockType, SockFlag}; in test_socketpair()
156 let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_socketpair()
202 let (fd2, fd1) = socketpair(AddressFamily::Unix, SockType::Stream, in stream()
216 SockType::Datagram, in udp()
223 SockType::Datagram, in udp()
256 SockType::Datagram, in gso()
267 SockType::Datagram, in gso()
305 SockType::Datagram, in gro()
[all …]
Dtest_sockopt.rs2 use nix::sys::socket::{socket, sockopt, getsockopt, setsockopt, AddressFamily, SockType, SockFlag, …
13 let s = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in is_so_mark_functional()
21 let fd = socket(AddressFamily::Inet, SockType::Datagram, SockFlag::empty(), SockProtocol::Udp) in test_so_buf()
44 let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in test_tcp_congestion()
62 let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in test_bindtodevice()
75 …let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), SockProtocol::Tcp).unwra… in test_so_tcp_keepalive()
/external/perfetto/src/base/
Dunix_socket_unittest.cc91 kTestSocket.family(), SockType::kStream); in TEST_F()
104 kTestSocket.family(), SockType::kStream); in TEST_F()
121 kTestSocket.family(), SockType::kStream); in TEST_F()
142 kTestSocket.family(), SockType::kStream); in TEST_F()
147 kTestSocket.family(), SockType::kStream); in TEST_F()
204 UnixSocketRaw::CreateMayFail(kTestSocket.family(), SockType::kStream); in TEST_F()
208 kTestSocket.family(), SockType::kStream); in TEST_F()
214 kTestSocket.family(), SockType::kStream); in TEST_F()
242 kTestSocket.family(), SockType::kStream); in TEST_F()
260 kTestSocket.family(), SockType::kStream); in TEST_F()
[all …]
Dunix_socket.cc118 inline int GetSockType(SockType type) { in GetSockType()
125 case SockType::kStream: in GetSockType()
127 case SockType::kDgram: in GetSockType()
129 case SockType::kSeqPacket: in GetSockType()
198 ScopedSocketHandle CreateSocketHandle(SockFamily family, SockType type) { in CreateSocketHandle()
248 SockType type) { in CreatePairPosix()
259 UnixSocketRaw UnixSocketRaw::CreateMayFail(SockFamily family, SockType type) { in CreateMayFail()
268 UnixSocketRaw::UnixSocketRaw(SockFamily family, SockType type) in UnixSocketRaw()
273 SockType type) in UnixSocketRaw()
371 PERFETTO_DCHECK(type_ == SockType::kStream || type_ == SockType::kSeqPacket); in Listen()
[all …]
/external/rust/crates/nix/src/sys/socket/
Dsockopt.rs265 sockopt_impl!(GetOnly, SockType, libc::SOL_SOCKET, libc::SO_TYPE, super::SockType);
648 … let (a, b) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()).unwrap(); in can_get_peercred_on_unix_socket()
660 … let (a, b) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()).unwrap(); in is_socket_type_unix()
661 let a_type = getsockopt(a, super::SockType).unwrap(); in is_socket_type_unix()
662 assert_eq!(a_type, SockType::Stream); in is_socket_type_unix()
672 let s = socket(AddressFamily::Inet, SockType::Datagram, SockFlag::empty(), None).unwrap(); in is_socket_type_dgram()
673 let s_type = getsockopt(s, super::SockType).unwrap(); in is_socket_type_dgram()
674 assert_eq!(s_type, SockType::Datagram); in is_socket_type_dgram()
686 let s = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in can_get_listen_on_tcp_socket()
Dmod.rs58 pub enum SockType { enum
1410 pub fn socket<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType, flags: SockFlag, … in socket() argument
1430 pub fn socketpair<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType, protocol: T, in socketpair() argument
/external/perfetto/src/profiling/memory/
Dclient_api_factory_standalone.cc84 base::SockFamily::kUnix, base::SockType::kStream); in StartHeapprofdIfStatic()
167 base::SockType::kStream); in ConstructClient()
Dwire_protocol_unittest.cc57 base::SockType::kStream); in CopyFD()
60 base::SockType::kStream); in CopyFD()
Dmain.cc105 &task_runner, base::SockFamily::kUnix, base::SockType::kStream); in StartCentralHeapprofd()
Dclient_api_unittest.cc61 base::SockFamily::kUnix, base::SockType::kStream); in ConstructClient()
Dclient_api_benchmark.cc59 base::SockFamily::kUnix, base::SockType::kStream); in ConstructClient()
Dclient.cc145 base::SockType::kStream); in ConnectToHeapprofd()
Dunwinding.cc386 base::SockFamily::kUnix, base::SockType::kStream); in HandleHandoffSocket()
Dheapprofd_producer.cc238 base::SockType::kStream); in AdoptSocket()
/external/perfetto/test/
Dproducer_socket_fuzzer.cc66 &task_runner, base::SockFamily::kUnix, base::SockType::kStream); in FuzzSharedMemory()
/external/perfetto/src/profiling/perf/
Dproc_descriptors.h76 base::SockFamily::kUnix, base::SockType::kStream); in AndroidRemoteDescriptorGetter()
/external/perfetto/src/ipc/
Dclient_impl.cc62 base::SockType::kStream, base::SockPeerCredMode::kIgnore); in ClientImpl()
79 kClientSockFamily, base::SockType::kStream, in TryConnect()
Dhost_impl.cc77 kHostSockFamily, base::SockType::kStream); in HostImpl()
84 kHostSockFamily, base::SockType::kStream); in HostImpl()
Dhost_impl_unittest.cc95 base::SockType::kStream); in FakeClient()
Dclient_impl_unittest.cc110 kTestSocket.family(), base::SockType::kStream); in FakeHost()
/external/perfetto/src/trace_processor/rpc/
Dhttpd.cc140 base::SockType::kStream); in Run()
148 base::SockType::kStream); in Run()
/external/rust/crates/tokio/tests/
Dio_async_fd.rs139 use nix::sys::socket::{self, AddressFamily, SockFlag, SockType}; in socketpair()
143 SockType::Stream, in socketpair()
/external/perfetto/src/traced/probes/android_log/
Dandroid_log_data_source_unittest.cc67 base::SockFamily::kUnix, base::SockType::kDgram); in StartAndSimulateLogd()
Dandroid_log_data_source.cc158 base::SockType::kSeqPacket); in ConnectLogdrSocket()