Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: sdk/lib/io/socket.dart

Issue 1974043002: Revert "Fix remaining strong-mode warnings and errors in dart:io." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | sdk/lib/io/stdio.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 part of dart.io; 5 part of dart.io;
6 6
7 7
8 /** 8 /**
9 * [InternetAddressType] is the type an [InternetAddress]. Currently, 9 * [InternetAddressType] is the type an [InternetAddress]. Currently,
10 * IP version 4 (IPv4) and IP version 6 (IPv6) are supported. 10 * IP version 4 (IPv4) and IP version 6 (IPv6) are supported.
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 561
562 /** 562 /**
563 * Returns the [InternetAddress] used to connect this socket. 563 * Returns the [InternetAddress] used to connect this socket.
564 */ 564 */
565 InternetAddress get address; 565 InternetAddress get address;
566 566
567 /** 567 /**
568 * Returns the remote [InternetAddress] connected to by this socket. 568 * Returns the remote [InternetAddress] connected to by this socket.
569 */ 569 */
570 InternetAddress get remoteAddress; 570 InternetAddress get remoteAddress;
571
572 Future<Socket> close();
573
574 Future<Socket> get done;
575 } 571 }
576 572
577 573
578 /** 574 /**
579 * Datagram package. Data send to and received from datagram sockets 575 * Datagram package. Data send to and received from datagram sockets
580 * contains the internet address and port of the destination or source 576 * contains the internet address and port of the destination or source
581 * togeter with the data. 577 * togeter with the data.
582 */ 578 */
583 class Datagram { 579 class Datagram {
584 List<int> data; 580 List<int> data;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 } 729 }
734 if (address != null) { 730 if (address != null) {
735 sb.write(", address = ${address.host}"); 731 sb.write(", address = ${address.host}");
736 } 732 }
737 if (port != null) { 733 if (port != null) {
738 sb.write(", port = $port"); 734 sb.write(", port = $port");
739 } 735 }
740 return sb.toString(); 736 return sb.toString();
741 } 737 }
742 } 738 }
OLDNEW
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | sdk/lib/io/stdio.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698