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 import 'dart:_js_helper' show patch; | 5 import 'dart:_js_helper' show patch; |
6 | 6 |
7 @patch | 7 @patch |
8 class _Directory { | 8 class _Directory { |
9 @patch | 9 @patch |
10 static _current() { | 10 static _current() { |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
412 @patch | 412 @patch |
413 static Future<ServerSocket> bind(address, int port, | 413 static Future<ServerSocket> bind(address, int port, |
414 {int backlog: 0, bool v6Only: false, bool shared: false}) { | 414 {int backlog: 0, bool v6Only: false, bool shared: false}) { |
415 throw new UnsupportedError("ServerSocket.bind"); | 415 throw new UnsupportedError("ServerSocket.bind"); |
416 } | 416 } |
417 } | 417 } |
418 | 418 |
419 @patch | 419 @patch |
420 class RawSocket { | 420 class RawSocket { |
421 @patch | 421 @patch |
422 static Future<RawSocket> connect(host, int port, {sourceAddress}) { | 422 static Future<RawSocket> connect(host, int port, |
423 {sourceAddress, Duration timeout}) { | |
423 throw new UnsupportedError("RawSocket constructor"); | 424 throw new UnsupportedError("RawSocket constructor"); |
424 } | 425 } |
425 } | 426 } |
426 | 427 |
427 @patch | 428 @patch |
428 class Socket { | 429 class Socket { |
429 @patch | 430 @patch |
430 static Future<Socket> connect(host, int port, {sourceAddress}) { | 431 static Future<Socket> connect(host, int port, {sourceAddress}) { |
bkonyi
2017/06/22 21:30:27
There should also be a timeout parameter here. I'v
| |
431 throw new UnsupportedError("Socket constructor"); | 432 throw new UnsupportedError("Socket constructor"); |
432 } | 433 } |
433 } | 434 } |
434 | 435 |
435 @patch | 436 @patch |
436 class SecureSocket { | 437 class SecureSocket { |
437 @patch | 438 @patch |
438 factory SecureSocket._(RawSecureSocket rawSocket) { | 439 factory SecureSocket._(RawSecureSocket rawSocket) { |
439 throw new UnsupportedError("SecureSocket constructor"); | 440 throw new UnsupportedError("SecureSocket constructor"); |
440 } | 441 } |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
615 } | 616 } |
616 } | 617 } |
617 | 618 |
618 @patch | 619 @patch |
619 class _IOService { | 620 class _IOService { |
620 @patch | 621 @patch |
621 static Future _dispatch(int request, List data) { | 622 static Future _dispatch(int request, List data) { |
622 throw new UnsupportedError("_IOService._dispatch"); | 623 throw new UnsupportedError("_IOService._dispatch"); |
623 } | 624 } |
624 } | 625 } |
OLD | NEW |