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

Unified Diff: dart/sdk/lib/io/secure_server_socket.dart

Issue 879353003: Introduce optional 'bool shared' parameter to ServerSocket.bind() ... (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/sdk/lib/_internal/compiler/js_lib/io_patch.dart ('k') | dart/sdk/lib/io/socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/io/secure_server_socket.dart
diff --git a/dart/sdk/lib/io/secure_server_socket.dart b/dart/sdk/lib/io/secure_server_socket.dart
index 1a0bf6efbb7e478c8e93a681a547cc14c2a74769..2a7341811aedfb6365fba92a260db4b93570faeb 100644
--- a/dart/sdk/lib/io/secure_server_socket.dart
+++ b/dart/sdk/lib/io/secure_server_socket.dart
@@ -67,7 +67,8 @@ class SecureServerSocket extends Stream<SecureSocket> {
bool v6Only: false,
bool requestClientCertificate: false,
bool requireClientCertificate: false,
- List<String> supportedProtocols}) {
+ List<String> supportedProtocols,
+ bool shared: false}) {
return RawSecureServerSocket.bind(
address,
port,
@@ -76,7 +77,8 @@ class SecureServerSocket extends Stream<SecureSocket> {
v6Only: v6Only,
requestClientCertificate: requestClientCertificate,
requireClientCertificate: requireClientCertificate,
- supportedProtocols: supportedProtocols).then(
+ supportedProtocols: supportedProtocols,
+ shared: shared).then(
(serverSocket) => new SecureServerSocket._(serverSocket));
}
@@ -192,8 +194,10 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> {
bool v6Only: false,
bool requestClientCertificate: false,
bool requireClientCertificate: false,
- List<String> supportedProtocols}) {
- return RawServerSocket.bind(address, port, backlog: backlog, v6Only: v6Only)
+ List<String> supportedProtocols,
+ bool shared: false}) {
+ return RawServerSocket.bind(
+ address, port, backlog: backlog, v6Only: v6Only, shared: shared)
.then((serverSocket) => new RawSecureServerSocket._(
serverSocket,
certificateName,
« no previous file with comments | « dart/sdk/lib/_internal/compiler/js_lib/io_patch.dart ('k') | dart/sdk/lib/io/socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698