Module net

Source

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 Rust SocketAddr.

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 using libc::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.