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

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

Issue 1425533010: Update documentation for secure networking classes. Remove certificateName parameter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Change documentation for HttpServer.bind shared parameter. Created 5 years, 1 month 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
« sdk/lib/io/http.dart ('K') | « sdk/lib/io/secure_socket.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket.dart
diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart
index 6464ab4aa93f7569a6f39dbbb2888be49e0be9ac..4da5bb83e5c6e4ade3301fdc51c69f0b56017275 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -224,13 +224,12 @@ abstract class RawServerSocket implements Stream<RawSocket> {
* value of [:0:] (the default) a reasonable value will be chosen by
* the system.
*
- * The optional argument [shared] specify whether additional binds
- * to the same `address`, `port` and `v6Only` combination is
- * possible from the same Dart process. If `shared` is `true` and
- * additional binds are performed, then the incoming connections
- * will be distributed between that set of `RawServerSocket`s. One
- * way of using this is to have number of isolates between which
- * incoming connections are distributed.
+ * The optional argument [shared] specifies whether additional RawServerSocket
+ * objects can bind to the same combination of `address`, `port` and `v6Only`.
+ * If `shared` is `true` and more `RawServerSocket`s from this isolate or
+ * other isolates are bound to the port, then the incoming connections will be
+ * distributed among all the bound `RawServerSocket`s. Connections can be
+ * distributed over multiple isolates this way.
*/
external static Future<RawServerSocket> bind(address,
int port,
@@ -294,13 +293,12 @@ abstract class ServerSocket implements Stream<Socket> {
* value of [:0:] (the default) a reasonable value will be chosen by
* the system.
*
- * The optional argument [shared] specify whether additional binds
- * to the same `address`, `port` and `v6Only` combination is
- * possible from the same Dart process. If `shared` is `true` and
- * additional binds are performed, then the incoming connections
- * will be distributed between that set of `ServerSocket`s. One way
- * of using this is to have number of isolates between which
- * incoming connections are distributed.
+ * The optional argument [shared] specifies whether additional ServerSocket
+ * objects can bind to the same combination of `address`, `port` and `v6Only`.
+ * If `shared` is `true` and more `ServerSocket`s from this isolate or other
+ * isolates are bound to the port, then the incoming connections will be
+ * distributed among all the bound `ServerSocket`s. Connections can be
+ * distributed over multiple isolates this way.
*/
external static Future<ServerSocket> bind(address,
int port,
« sdk/lib/io/http.dart ('K') | « sdk/lib/io/secure_socket.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698