Searched refs:SockType (Results 1 - 4 of 4) sorted by relevance
/third_party/rust/crates/nix/test/sys/ |
H A D | test_sockopt.rs | 5 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() [all...] |
H A D | test_socket.rs | 77 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 in udp() [all...] |
/third_party/rust/crates/nix/src/sys/socket/ |
H A D | mod.rs | 90 pub enum SockType { enum 113 impl TryFrom<i32> for SockType { 293 /// (e.g., of type [`Stream`](enum.SockType.html)); the underlying protocol must also 333 /// sockets of type [`SeqPacket`](enum.SockType.html)). 696 /// SockType::Datagram, 1449 /// let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, 1466 /// let fd = socket(AddressFamily::Inet, SockType::Datagram, SockFlag::empty(), 1827 sendmsg, setsockopt, socket, sockopt::Timestamping, MsgFlags, SockFlag, SockType, in test_recvmm2() 1836 SockType::Datagram, in test_recvmm2() 1843 SockType in test_recvmm2() [all...] |
H A D | sockopt.rs | 634 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 in can_get_listen_on_tcp_socket() [all...] |
Completed in 5 milliseconds