| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |