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

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

Issue 25511002: Add reusePort argument to ServerSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Mac os X version. Created 7 years, 3 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 | « runtime/bin/socket_win.cc ('k') | tests/standalone/io/socket_reuse_port_test.dart » ('j') | 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 ce8ace5476635829bccca0e2998141e430cfa8bf..e8804d5176354954ed8c17dc63de8110f2cffbeb 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -194,7 +194,8 @@ abstract class RawServerSocket implements Stream<RawSocket> {
external static Future<RawServerSocket> bind(address,
int port,
{int backlog: 0,
- bool v6Only: false});
+ bool v6Only: false,
+ bool reusePort: false});
/**
* Returns the port used by this socket.
@@ -255,7 +256,8 @@ abstract class ServerSocket implements Stream<Socket> {
external static Future<ServerSocket> bind(address,
int port,
{int backlog: 0,
- bool v6Only: false});
+ bool v6Only: false,
+ bool reusePort: false});
/**
* Returns the port used by this socket.
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | tests/standalone/io/socket_reuse_port_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698