Functionsยง
- new_
ip_ ๐socket - new_
socket ๐Create a new non-blocking socket. - socket_
addr ๐Converts a RustSocketAddr
into the system representation. - to_
socket_ ๐ โaddr Converts alibc::sockaddr
compatible struct into a native RustSocketAddr
.
Unionsยง
- Socket
AddrC ๐Repr A type with the same memory layout aslibc::sockaddr
. Used in converting Rust level SocketAddr* types into their system representation. The benefit of this specific type over usinglibc::sockaddr_storage
is that this type is exactly as large as it needs to be and not a lot larger. And it can be initialized cleaner from Rust.