OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 [DartUriBase="mojo/services/network/public/interfaces"] |
5 module mojo; | 6 module mojo; |
6 | 7 |
7 enum NetAddressFamily { | 8 enum NetAddressFamily { |
8 UNSPECIFIED, | 9 UNSPECIFIED, |
9 IPV4, | 10 IPV4, |
10 IPV6 | 11 IPV6 |
11 }; | 12 }; |
12 | 13 |
13 struct NetAddressIPv4 { | 14 struct NetAddressIPv4 { |
14 // The port number. This is in the local machine's endianness. | 15 // The port number. This is in the local machine's endianness. |
(...skipping 15 matching lines...) Expand all Loading... |
30 }; | 31 }; |
31 | 32 |
32 struct NetAddress { | 33 struct NetAddress { |
33 NetAddressFamily family = UNSPECIFIED; | 34 NetAddressFamily family = UNSPECIFIED; |
34 | 35 |
35 // At most one of the following fields is non-NULL depending on the value of | 36 // At most one of the following fields is non-NULL depending on the value of |
36 // |family|. | 37 // |family|. |
37 NetAddressIPv4? ipv4; | 38 NetAddressIPv4? ipv4; |
38 NetAddressIPv6? ipv6; | 39 NetAddressIPv6? ipv6; |
39 }; | 40 }; |
OLD | NEW |