Home
last modified time | relevance | path

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

12

/external/rust/crates/nix/test/sys/
Dtest_sockopt.rs5 SockProtocol, SockType,
20 SockType::SeqPacket, in test_local_peercred_seqpacket()
46 SockType::Stream, in test_local_peercred_stream()
66 SockType::Stream, in is_so_mark_functional()
80 SockType::Datagram, in test_so_buf()
106 SockType::Stream, in test_so_tcp_maxseg()
130 SockType::Stream, in test_so_tcp_maxseg()
158 SockType::Stream, in test_so_type()
164 assert_eq!(Ok(SockType::Stream), getsockopt(sockfd, sockopt::SockType)); in test_so_type()
178 assert_eq!(Err(Errno::EINVAL), getsockopt(sockfd, sockopt::SockType)); in test_so_type_unknown()
[all …]
Dtest_socket.rs77 ControlMessageOwned, MsgFlags, SockFlag, SockType, SockaddrIn, in test_timestamping()
86 SockType::Datagram, in test_timestamping()
94 SockType::Datagram, in test_timestamping()
266 use nix::sys::socket::{socket, AddressFamily, SockFlag, SockType}; in test_getsockname()
272 SockType::Stream, in test_getsockname()
284 use nix::sys::socket::{socketpair, AddressFamily, SockFlag, SockType}; in test_socketpair()
289 SockType::Stream, in test_socketpair()
358 SockType::Stream, in stream()
373 SockType::Datagram, in udp()
381 SockType::Datagram, in udp()
[all …]
/external/perfetto/include/perfetto/ext/base/
Dunix_socket.h64 enum class SockType { kStream = 100, kDgram, kSeqPacket }; enum
93 static UnixSocketRaw CreateMayFail(SockFamily family, SockType type);
98 SockType);
106 UnixSocketRaw(ScopedSocketHandle, SockFamily, SockType);
121 SockType type() const { return type_; } in type()
169 UnixSocketRaw(SockFamily, SockType);
179 SockType type_ = SockType::kStream;
274 SockType);
282 SockType);
292 SockType,
[all …]
/external/perfetto/src/base/
Dunix_socket_unittest.cc93 kTestSocket.family(), SockType::kStream); in TEST_F()
106 kTestSocket.family(), SockType::kStream); in TEST_F()
123 kTestSocket.family(), SockType::kStream); in TEST_F()
144 kTestSocket.family(), SockType::kStream); in TEST_F()
149 kTestSocket.family(), SockType::kStream); in TEST_F()
206 UnixSocketRaw::CreateMayFail(kTestSocket.family(), SockType::kStream); in TEST_F()
210 kTestSocket.family(), SockType::kStream); in TEST_F()
216 kTestSocket.family(), SockType::kStream); in TEST_F()
244 kTestSocket.family(), SockType::kStream); in TEST_F()
262 kTestSocket.family(), SockType::kStream); in TEST_F()
[all …]
Dunix_socket.cc110 inline int GetSockType(SockType type) { in GetSockType()
117 case SockType::kStream: in GetSockType()
119 case SockType::kDgram: in GetSockType()
121 case SockType::kSeqPacket: in GetSockType()
196 ScopedSocketHandle CreateSocketHandle(SockFamily family, SockType type) { in CreateSocketHandle()
246 SockType type) { in CreatePairPosix()
257 UnixSocketRaw UnixSocketRaw::CreateMayFail(SockFamily family, SockType type) { in CreateMayFail()
266 UnixSocketRaw::UnixSocketRaw(SockFamily family, SockType type) in UnixSocketRaw()
271 SockType type) in UnixSocketRaw()
375 PERFETTO_DCHECK(type_ == SockType::kStream || type_ == SockType::kSeqPacket); in Listen()
[all …]
/external/rust/crates/nix/src/sys/socket/
Dsockopt.rs634 SockType,
638 super::SockType,
1356 SockType::Stream, in can_get_peercred_on_unix_socket()
1374 SockType::Stream, in is_socket_type_unix()
1379 let a_type = getsockopt(a, super::SockType).unwrap(); in is_socket_type_unix()
1380 assert_eq!(a_type, SockType::Stream); in is_socket_type_unix()
1392 SockType::Datagram, in is_socket_type_dgram()
1397 let s_type = getsockopt(s, super::SockType).unwrap(); in is_socket_type_dgram()
1398 assert_eq!(s_type, SockType::Datagram); in is_socket_type_dgram()
1410 SockType::Stream, in can_get_listen_on_tcp_socket()
Dmod.rs90 pub enum SockType { enum
113 impl TryFrom<i32> for SockType { implementation
1827 sendmsg, setsockopt, socket, sockopt::Timestamping, MsgFlags, SockFlag, SockType,
1836 SockType::Datagram,
1843 SockType::Datagram,
2082 ty: SockType, in socket() argument
2107 ty: SockType, in socketpair() argument
/external/perfetto/src/profiling/memory/
Dclient_api_factory_standalone.cc93 base::SockFamily::kUnix, base::SockType::kStream); in StartHeapprofdIfStatic()
191 base::SockType::kStream); in ConstructClient()
Dwire_protocol_unittest.cc57 base::SockType::kStream); in CopyFD()
60 base::SockType::kStream); in CopyFD()
Dheapprofd.cc75 &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()
Dheapprofd_producer_integrationtest.cc86 base::SockFamily::kUnix, base::SockType::kStream); in HeapprofdThread()
/external/perfetto/src/websocket_bridge/
Dwebsocket_bridge.cc94 base::UnixSocketRaw::CreateMayFail(ep.family, base::SockType::kStream); in OnHttpRequest()
115 base::SockType::kStream); in OnHttpRequest()
/external/perfetto/src/ipc/
Dhost_impl.cc98 kHostSockFamily, base::SockType::kStream); in HostImpl()
105 kHostSockFamily, base::SockType::kStream); in HostImpl()
141 base::SockType::kStream); in AdoptConnectedSocket_Fuchsia()
Dclient_impl.cc62 base::SockType::kStream, base::SockPeerCredMode::kIgnore); in ClientImpl()
79 kClientSockFamily, base::SockType::kStream, in TryConnect()
Dhost_impl_unittest.cc95 base::SockType::kStream); in FakeClient()
102 base::SockType::kStream); in FakeClient()
184 base::SockFamily::kUnix, base::SockType::kStream); in SetUp()
Dclient_impl_unittest.cc115 base::SockType::kStream); in FakeHost()
221 base::SockFamily::kUnix, base::SockType::kStream); in SetUp()
227 kTestSocket.family(), base::SockType::kStream)); in SetUp()
/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/rust/crates/vsock/src/
Dlib.rs29 AddressFamily, GetSockOpt, MsgFlags, SetSockOpt, SockFlag, SockType,
46 SockType::Stream, in new_socket()
/external/crosvm/rutabaga_gfx/src/cross_domain/sys/
Dunix.rs33 use nix::sys::socket::SockType;
166 SockType::Stream, in get_connection()
/external/perfetto/src/ipc/test/
Dipc_integrationtest.cc93 perfetto::base::SockFamily::kUnix, perfetto::base::SockType::kStream); in TEST_F()
/external/perfetto/src/base/http/
Dhttp_server.cc60 SockType::kStream); in Start()
68 SockType::kStream); in Start()
/external/rust/crates/tokio/tests/
Dio_async_fd.rs126 use nix::sys::socket::{self, AddressFamily, SockFlag, SockType}; in socketpair()
130 SockType::Stream, in socketpair()

12