Functionsยง
- new_ip_socket ๐
- new_socket ๐Create a new non-blocking socket.
- socket_addr ๐Converts a Rust
SocketAddr
into the system representation. - to_socket_addr ๐ โConverts a
libc::sockaddr
compatible struct into a native RustSocketAddr
.
Unionsยง
- SocketAddrCRepr ๐A type with the same memory layout as
libc::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.