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

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

Issue 2872603002: Revert "Warn when adding something to a closed sink and improve documentation." (Closed)
Patch Set: Created 3 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/io_sink.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 * A high-level class for communicating securely over a TCP socket, using 8 * A high-level class for communicating securely over a TCP socket, using
9 * TLS and SSL. The [SecureSocket] exposes both a [Stream] and an 9 * TLS and SSL. The [SecureSocket] exposes both a [Stream] and an
10 * [IOSink] interface, making it ideal for using together with 10 * [IOSink] interface, making it ideal for using together with
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 * handshake to make the communication secure. When the returned 51 * handshake to make the communication secure. When the returned
52 * future completes the [SecureSocket] has completed the TLS 52 * future completes the [SecureSocket] has completed the TLS
53 * handshake. Using this function requires that the other end of the 53 * handshake. Using this function requires that the other end of the
54 * connection is prepared for TLS handshake. 54 * connection is prepared for TLS handshake.
55 * 55 *
56 * If the [socket] already has a subscription, this subscription 56 * If the [socket] already has a subscription, this subscription
57 * will no longer receive and events. In most cases calling 57 * will no longer receive and events. In most cases calling
58 * `pause` on this subscription before starting TLS handshake is 58 * `pause` on this subscription before starting TLS handshake is
59 * the right thing to do. 59 * the right thing to do.
60 * 60 *
61 * The given [socket] is closed and may not be used anymore.
62 *
63 * If the [host] argument is passed it will be used as the host name 61 * If the [host] argument is passed it will be used as the host name
64 * for the TLS handshake. If [host] is not passed the host name from 62 * for the TLS handshake. If [host] is not passed the host name from
65 * the [socket] will be used. The [host] can be either a [String] or 63 * the [socket] will be used. The [host] can be either a [String] or
66 * an [InternetAddress]. 64 * an [InternetAddress].
67 * 65 *
68 * Calling this function will _not_ cause a DNS host lookup. If the 66 * Calling this function will _not_ cause a DNS host lookup. If the
69 * [host] passed is a [String] the [InternetAddress] for the 67 * [host] passed is a [String] the [InternetAddress] for the
70 * resulting [SecureSocket] will have the passed in [host] as its 68 * resulting [SecureSocket] will have the passed in [host] as its
71 * host value and the internet address of the already connected 69 * host value and the internet address of the already connected
72 * socket as its address value. 70 * socket as its address value.
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 1227
1230 /** 1228 /**
1231 * An exception that happens in the handshake phase of establishing 1229 * An exception that happens in the handshake phase of establishing
1232 * a secure network connection, when looking up or verifying a 1230 * a secure network connection, when looking up or verifying a
1233 * certificate. 1231 * certificate.
1234 */ 1232 */
1235 class CertificateException extends TlsException { 1233 class CertificateException extends TlsException {
1236 const CertificateException([String message = "", OSError osError = null]) 1234 const CertificateException([String message = "", OSError osError = null])
1237 : super._("CertificateException", message, osError); 1235 : super._("CertificateException", message, osError);
1238 } 1236 }
OLDNEW
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698