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

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

Issue 210393005: update API docs for HTTP client and server-related classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: incorporated comments from Søren Created 6 years, 9 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 | Annotate | Revision Log
« sdk/lib/io/http.dart ('K') | « sdk/lib/io/http.dart ('k') | no next file » | 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 23 matching lines...) Expand all
34 case 1: return "IP_V6"; 34 case 1: return "IP_V6";
35 default: throw new ArgumentError("Invalid InternetAddress"); 35 default: throw new ArgumentError("Invalid InternetAddress");
36 } 36 }
37 } 37 }
38 38
39 String toString() => "InternetAddressType: $name"; 39 String toString() => "InternetAddressType: $name";
40 } 40 }
41 41
42 42
43 /** 43 /**
44 * The [InternetAddress] is an object reflecting either a remote or a 44 * An internet address.
45 * local address. When combined with a port number, this represents a 45 *
46 * endpoint that a socket can connect to or a listening socket can 46 * This object holds an internet address. If this internet address
47 * bind to. 47 * is the result of a DNS lookup, the address also holds the hostname
48 * used to make the lookup.
49 * An Internet address combined with a port number represents an
50 * endpoint to which a socket can connect or a listening socket can
Anders Johnsen 2014/03/27 12:29:36 We call the listening socket a server socket in th
51 * bind.
48 */ 52 */
49 abstract class InternetAddress { 53 abstract class InternetAddress {
50 /** 54 /**
51 * IP version 4 loopback address. Use this address when listening on 55 * IP version 4 loopback address. Use this address when listening on
52 * or connecting to the loopback adapter using IP version 4 (IPv4). 56 * or connecting to the loopback adapter using IP version 4 (IPv4).
53 */ 57 */
54 external static InternetAddress get LOOPBACK_IP_V4; 58 external static InternetAddress get LOOPBACK_IP_V4;
55 59
56 /** 60 /**
57 * IP version 6 loopback address. Use this address when listening on 61 * IP version 6 loopback address. Use this address when listening on
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 } 675 }
672 if (address != null) { 676 if (address != null) {
673 sb.write(", address = ${address.host}"); 677 sb.write(", address = ${address.host}");
674 } 678 }
675 if (port != null) { 679 if (port != null) {
676 sb.write(", port = $port"); 680 sb.write(", port = $port");
677 } 681 }
678 return sb.toString(); 682 return sb.toString();
679 } 683 }
680 } 684 }
OLDNEW
« sdk/lib/io/http.dart ('K') | « sdk/lib/io/http.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698