| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 patch class RawServerSocket { | 5 patch class RawServerSocket { |
| 6 /* patch */ static Future<RawServerSocket> bind(address, | 6 /* patch */ static Future<RawServerSocket> bind(address, |
| 7 int port, | 7 int port, |
| 8 {int backlog: 0, | 8 {int backlog: 0, |
| 9 bool v6Only: false, | 9 bool v6Only: false, |
| 10 bool shared: false}) { | 10 bool shared: false}) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 | 40 |
| 41 /* patch */ factory InternetAddress(String address) { | 41 /* patch */ factory InternetAddress(String address) { |
| 42 return new _InternetAddress.parse(address); | 42 return new _InternetAddress.parse(address); |
| 43 } | 43 } |
| 44 | 44 |
| 45 /* patch */ static Future<List<InternetAddress>> lookup( | 45 /* patch */ static Future<List<InternetAddress>> lookup( |
| 46 String host, {InternetAddressType type: InternetAddressType.ANY}) { | 46 String host, {InternetAddressType type: InternetAddressType.ANY}) { |
| 47 return _NativeSocket.lookup(host, type: type); | 47 return _NativeSocket.lookup(host, type: type); |
| 48 } | 48 } |
| 49 |
| 50 /* patch */ static InternetAddress _cloneWithNewHost( |
| 51 InternetAddress address, String host) { |
| 52 return (address as _InternetAddress)._cloneWithNewHost(host); |
| 53 } |
| 49 } | 54 } |
| 50 | 55 |
| 51 patch class NetworkInterface { | 56 patch class NetworkInterface { |
| 52 /* patch */ static bool get listSupported { | 57 /* patch */ static bool get listSupported { |
| 53 return _listSupported(); | 58 return _listSupported(); |
| 54 } | 59 } |
| 55 | 60 |
| 56 /* patch */ static Future<List<NetworkInterface>> list({ | 61 /* patch */ static Future<List<NetworkInterface>> list({ |
| 57 bool includeLoopback: false, | 62 bool includeLoopback: false, |
| 58 bool includeLinkLocal: false, | 63 bool includeLinkLocal: false, |
| (...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1852 Datagram _makeDatagram(List<int> data, | 1857 Datagram _makeDatagram(List<int> data, |
| 1853 String address, | 1858 String address, |
| 1854 List<int> in_addr, | 1859 List<int> in_addr, |
| 1855 int port) { | 1860 int port) { |
| 1856 return new Datagram( | 1861 return new Datagram( |
| 1857 data, | 1862 data, |
| 1858 new _InternetAddress(address, null, in_addr), | 1863 new _InternetAddress(address, null, in_addr), |
| 1859 port); | 1864 port); |
| 1860 } | 1865 } |
| 1861 | 1866 |
| OLD | NEW |