Module socket
Modules
Structs
Unions
-
SocketAddrCRepr
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.
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