| 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 return _RawServerSocket.bind(address, port, backlog, v6Only); | 10 return _RawServerSocket.bind(address, port, backlog, v6Only); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 /* patch */ static InternetAddress get ANY_IP_V4 { | 31 /* patch */ static InternetAddress get ANY_IP_V4 { |
| 32 return _InternetAddress.ANY_IP_V4; | 32 return _InternetAddress.ANY_IP_V4; |
| 33 } | 33 } |
| 34 | 34 |
| 35 /* patch */ static InternetAddress get ANY_IP_V6 { | 35 /* patch */ static InternetAddress get ANY_IP_V6 { |
| 36 return _InternetAddress.ANY_IP_V6; | 36 return _InternetAddress.ANY_IP_V6; |
| 37 } | 37 } |
| 38 | 38 |
| 39 /* patch */ factory InternetAddress(String address) { |
| 40 return new _InternetAddress.parse(address); |
| 41 } |
| 42 |
| 39 /* patch */ static Future<List<InternetAddress>> lookup( | 43 /* patch */ static Future<List<InternetAddress>> lookup( |
| 40 String host, {InternetAddressType type: InternetAddressType.ANY}) { | 44 String host, {InternetAddressType type: InternetAddressType.ANY}) { |
| 41 return _NativeSocket.lookup(host, type: type); | 45 return _NativeSocket.lookup(host, type: type); |
| 42 } | 46 } |
| 43 } | 47 } |
| 44 | 48 |
| 45 patch class NetworkInterface { | 49 patch class NetworkInterface { |
| 46 /* patch */ static Future<List<NetworkInterface>> list({ | 50 /* patch */ static Future<List<NetworkInterface>> list({ |
| 47 bool includeLoopback: false, | 51 bool includeLoopback: false, |
| 48 bool includeLinkLocal: false, | 52 bool includeLinkLocal: false, |
| (...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 if (_detachReady != null) { | 1268 if (_detachReady != null) { |
| 1265 _detachReady.complete(null); | 1269 _detachReady.complete(null); |
| 1266 } else { | 1270 } else { |
| 1267 if (_raw != null) { | 1271 if (_raw != null) { |
| 1268 _raw.shutdown(SocketDirection.SEND); | 1272 _raw.shutdown(SocketDirection.SEND); |
| 1269 _disableWriteEvent(); | 1273 _disableWriteEvent(); |
| 1270 } | 1274 } |
| 1271 } | 1275 } |
| 1272 } | 1276 } |
| 1273 } | 1277 } |
| OLD | NEW |