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

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

Issue 349403003: Fix type error in r37647 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 throw new ArgumentError("onBadCertificate is not null or a Function"); 602 throw new ArgumentError("onBadCertificate is not null or a Function");
603 } 603 }
604 } 604 }
605 605
606 int get port => _socket.port; 606 int get port => _socket.port;
607 607
608 InternetAddress get remoteAddress => _socket.remoteAddress; 608 InternetAddress get remoteAddress => _socket.remoteAddress;
609 609
610 int get remotePort => _socket.remotePort; 610 int get remotePort => _socket.remotePort;
611 611
612 void set _owner(owner) { _socket._owner = owner; } 612 void set _owner(owner) {
613 (_socket as dynamic)._owner = owner;
herhut 2014/06/24 11:24:31 How about an assignment to a local variable instea
Bill Hesse 2014/06/24 11:29:03 There are 3 other places in this file where we use
614 }
613 615
614 int available() { 616 int available() {
615 return _status != CONNECTED ? 0 617 return _status != CONNECTED ? 0
616 : _secureFilter.buffers[READ_PLAINTEXT].length; 618 : _secureFilter.buffers[READ_PLAINTEXT].length;
617 } 619 }
618 620
619 Future<RawSecureSocket> close() { 621 Future<RawSecureSocket> close() {
620 shutdown(SocketDirection.BOTH); 622 shutdown(SocketDirection.BOTH);
621 return _closeCompleter.future; 623 return _closeCompleter.future;
622 } 624 }
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 /** 1267 /**
1266 * An exception that happens in the handshake phase of establishing 1268 * An exception that happens in the handshake phase of establishing
1267 * a secure network connection, when looking up or verifying a 1269 * a secure network connection, when looking up or verifying a
1268 * certificate. 1270 * certificate.
1269 */ 1271 */
1270 class CertificateException extends TlsException { 1272 class CertificateException extends TlsException {
1271 const CertificateException([String message = "", 1273 const CertificateException([String message = "",
1272 OSError osError = null]) 1274 OSError osError = null])
1273 : super._("CertificateException", message, osError); 1275 : super._("CertificateException", message, osError);
1274 } 1276 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698