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

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

Issue 14640008: Change the signature for all network bind calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 44337cae51193e5cce3e2e5365a355a2a96adcc9..54aa4a47e965765cbdeba51840abe52c68329916 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -1634,13 +1634,13 @@ class _HttpConnection {
// HTTP server waiting for socket connections.
class _HttpServer extends Stream<HttpRequest> implements HttpServer {
- static Future<HttpServer> bind(String host, int port, int backlog) {
- return ServerSocket.bind(host, port, backlog).then((socket) {
+ static Future<HttpServer> bind(host, int port, int backlog) {
Anders Johnsen 2013/05/01 07:50:19 host -> address
Søren Gjesse 2013/05/01 07:55:20 Done.
+ return ServerSocket.bind(host, port, backlog: backlog).then((socket) {
return new _HttpServer._(socket, true);
});
}
- static Future<HttpServer> bindSecure(String host,
+ static Future<HttpServer> bindSecure(host,
Anders Johnsen 2013/05/01 07:50:19 Ditto.
Søren Gjesse 2013/05/01 07:55:20 Done.
int port,
int backlog,
String certificate_name,
@@ -1648,8 +1648,8 @@ class _HttpServer extends Stream<HttpRequest> implements HttpServer {
return SecureServerSocket.bind(
host,
port,
- backlog,
certificate_name,
+ backlog: backlog,
requestClientCertificate: requestClientCertificate)
.then((socket) {
return new _HttpServer._(socket, true);

Powered by Google App Engine
This is Rietveld 408576698