Enum nix::sys::socket::InetAddr
[−]
[src]
pub enum InetAddr { V4(sockaddr_in), V6(sockaddr_in6), }
Variants
V4 | |
V6 |
Methods
impl InetAddr
fn from_std(std: &SocketAddr) -> InetAddr
fn new(ip: IpAddr, port: u16) -> InetAddr
fn ip(&self) -> IpAddr
Gets the IP address associated with this socket address.
fn port(&self) -> u16
Gets the port number associated with this socket address