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

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

Issue 113923004: Only store the address bytes for an internet address in Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | « runtime/bin/socket_patch.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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 // create a new one. 533 // create a new one.
534 _socketSubscription = _socket.listen(_eventDispatcher, 534 _socketSubscription = _socket.listen(_eventDispatcher,
535 onError: _reportError, 535 onError: _reportError,
536 onDone: _doneHandler); 536 onDone: _doneHandler);
537 } else { 537 } else {
538 _socketSubscription.onData(_eventDispatcher); 538 _socketSubscription.onData(_eventDispatcher);
539 _socketSubscription.onError(_reportError); 539 _socketSubscription.onError(_reportError);
540 _socketSubscription.onDone(_doneHandler); 540 _socketSubscription.onDone(_doneHandler);
541 } 541 }
542 _secureFilter.connect(address.host, 542 _secureFilter.connect(address.host,
543 (address as dynamic)._sockaddr_storage, 543 (address as dynamic)._in_addr,
544 port, 544 port,
545 is_server, 545 is_server,
546 certificateName, 546 certificateName,
547 requestClientCertificate || 547 requestClientCertificate ||
548 requireClientCertificate, 548 requireClientCertificate,
549 requireClientCertificate, 549 requireClientCertificate,
550 sendClientCertificate); 550 sendClientCertificate);
551 _secureHandshake(); 551 _secureHandshake();
552 }) 552 })
553 .catchError(_reportError); 553 .catchError(_reportError);
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 /** 1266 /**
1267 * An exception that happens in the handshake phase of establishing 1267 * An exception that happens in the handshake phase of establishing
1268 * a secure network connection, when looking up or verifying a 1268 * a secure network connection, when looking up or verifying a
1269 * certificate. 1269 * certificate.
1270 */ 1270 */
1271 class CertificateException extends TlsException { 1271 class CertificateException extends TlsException {
1272 const CertificateException([String message = "", 1272 const CertificateException([String message = "",
1273 OSError osError = null]) 1273 OSError osError = null])
1274 : super._("CertificateException", message, osError); 1274 : super._("CertificateException", message, osError);
1275 } 1275 }
OLDNEW
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698