os_socketaddr-0.2.1 has been yanked.
os_socketaddr
This crate provides a type that can act as a platform-native socket address
(i.e. libc::sockaddr)
Motivation
The std crate provides SocketAddr for managing socket addresses. Its V4 variant
encapsulates libc::sockaddr_in and its V6 variant encapsulates libc::sockaddr_in6.
However there is no easy way to convert SocketAddr from/into a libc::sockaddr because
SocketAddr is a rust enum.
This crate provides OsSocketAddr which holds a libc::sockaddr (containing an IPv4 or IPv6
address) and the conversion functions from/into SocketAddr.
Example
extern crate libc;
extern crate os_socketaddr;
use SocketAddr;
use ;
use OsSocketAddr;