Re-exportsยง
pub use unix::*;
Modulesยง
- unix ๐
Structsยง
Functionsยง
- addr_
family ๐ - getsockoptโ
- Gets the value of a socket option.
- ip_
v4_ ๐addr_ from_ c - ip_
v4_ ๐addr_ to_ c - ip_
v6_ ๐addr_ from_ c - ip_
v6_ ๐addr_ to_ c - lookup_
host - setsockoptโ
- Sets the value of a socket option.
- socket_
addr_ ๐ โfrom_ c - Converts the C socket address stored in
storageto a RustSocketAddr. - socket_
addr_ ๐to_ c - socket_
addr_ ๐v4_ from_ c - socket_
addr_ ๐v4_ to_ c - socket_
addr_ ๐v6_ from_ c - socket_
addr_ ๐v6_ to_ c - sockname ๐ โ
- Wraps a call to a platform function that returns a socket address.
- to_
ipv6mr_ ๐interface Non-Android
Type Aliasesยง
- IpV4
Multi ๐Cast Type
Unionsยง
- Socket
AddrC ๐Repr - A type with the same memory layout as
c::sockaddr. Used in converting Rust level SocketAddr* types into their system representation. The benefit of this specific type over usingc::sockaddr_storageis that this type is exactly as large as it needs to be and not a lot larger. And it can be initialized more cleanly from Rust.