diff options
| author | Eric Reed <ereed@mozilla.com> | 2013-06-25 16:03:24 -0700 |
|---|---|---|
| committer | Eric Reed <ereed@mozilla.com> | 2013-06-25 16:03:24 -0700 |
| commit | d0c812f2a8064a9ea1b6a309343c00a5c18c9ce4 (patch) | |
| tree | f52112304705af8f8c17a08604550ffb106e6229 /src/libstd | |
| parent | 2c5cfe1037d618153b39597e0e1e62d95c8e4760 (diff) | |
| download | rust-d0c812f2a8064a9ea1b6a309343c00a5c18c9ce4.tar.gz rust-d0c812f2a8064a9ea1b6a309343c00a5c18c9ce4.zip | |
IPv6 struct
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rt/io/net/ip.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/rt/io/net/ip.rs b/src/libstd/rt/io/net/ip.rs index d71b891350e..3a93fd70543 100644 --- a/src/libstd/rt/io/net/ip.rs +++ b/src/libstd/rt/io/net/ip.rs @@ -8,8 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +type Port = u16; + #[deriving(Eq, TotalEq)] pub enum IpAddr { - Ipv4(u8, u8, u8, u8, u16), - Ipv6 + Ipv4(u8, u8, u8, u8, Port), + Ipv6(u16, u16, u16, u16, u16, u16, u16, u16, Port) } |
