| ... | @@ -1,9 +1,16 @@ | ... | @@ -1,9 +1,16 @@ |
| | 1 | // SPDX-License-Identifier: MIT |
| | 2 | // Copyright (c) 2015-2021 Zig Contributors |
| | 3 | // This file is part of [zig](https://ziglang.org/), which is MIT licensed. |
| | 4 | // The MIT license requires this copyright notice to be included in all copies |
| | 5 | // and substantial portions of the software. |
| | 6 | |
| 1 | const std = @import("../../std.zig"); | 7 | const std = @import("../../std.zig"); |
| 2 | | 8 | |
| 3 | const IPv4 = std.x.os.IPv4; | 9 | const IPv4 = std.x.os.IPv4; |
| 4 | const IPv6 = std.x.os.IPv6; | 10 | const IPv6 = std.x.os.IPv6; |
| 5 | const Socket = std.x.os.Socket; | 11 | const Socket = std.x.os.Socket; |
| 6 | | 12 | |
| | 13 | /// A generic IP abstraction. |
| 7 | const ip = @This(); | 14 | const ip = @This(); |
| 8 | | 15 | |
| 9 | /// A union of all eligible types of IP addresses. | 16 | /// A union of all eligible types of IP addresses. |